Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Grumelo
Advocate II
Advocate II

The Missing Values Pattern

I have a list of Projects, each of them have a Start Date.

Each month a Project Report is due for all running Projects (Project Start Date < Period EoM).

 

Business wants to track Projects not having the expected reports.

Data are shown below.

data.png

Data Model is as below

model.png

 

 

The tricky part is to calculate the measure 'Expected Report'.

 

The expected result look like below

expected_results.png

I have tried with the Lost Custormer Approach from the New and Returning Customers pattern.

Without success ...

 

Result so far in power BI, values are wrong, total are wrong

wrong.png

 

Any idea how to solve this challenge ?

 

Please have a look to the shared report

3 REPLIES 3
Grumelo
Advocate II
Advocate II

@marcorusso Any chance you may have a look? 

v-frfei-msft
Community Support
Community Support

Hi @Grumelo,

 

One sample for your reference.

 

1. Create two calculated column based on the sample table.

 

date = DATE(LEFT(Table1[Report Period],4),RIGHT(Table1[Report Period],2),1)
Periddate = EOMONTH(Table1[date],0)

2. Create a measure to achieve the goal.

 

Excepted result = IF(MAX(Table1[Starting Date])<=MAX(Table1[Periddate]),1,0)

3. Also we can use a calculated column to work on it.

 

Excepted = IF(Table1[Starting Date]<=Table1[Periddate],1,0)

Capture.PNG

 

For more detials, please check the pbix as attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Data can't be manipulated, data model (edited original post) can't change.

 

Sample report is shared in the Topic message.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.