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

Origianl Topic is there

 

https://community.powerbi.com/t5/Desktop/The-Missing-Values-Pattern/td-p/538927

 

Sorry for the confusion, post has been duplicated

5 REPLIES 5
Greg_Deckler
Super User
Super User

Am I missing something or is it as simple as, if Report Period is less than Project Starting Date then blank, otherwise 1?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

It may works in the first table but total will be wrong and no correct answer in second table when no Period context is defined.

Dealing wih a calculated column won't help as well because we are dealing with data that does not exist.

Look carefuly to the available data at the top.

 

Hi @Grumelo,

Based on my test, you could refer to below steps:

Sample data:

1.PNG

Create two measures:

Expected reports measure = IF(MONTH(MAX('Table1'[Starting Date]))>MONTH(MAX('Table1'[Report period])),BLANK(),1)
Measure = SUMX('Table1','Table1'[Expected reports measure])

Result:

1.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Look at my data model, there is no such table combining all projects and all periods. That would be too simple.

We are dealing with missing data, missing records.

 

Project P30 has no records at all in the Project Report Table and I'm trying to calculate how many are expected.

Hi @Grumelo,

Could you please share some sample file to have a test or share the pbix file if possible?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.