Forum Discussion
Grumelo
7 years agoAdvocate 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
- Greg_DecklerCommunity Champion
Am I missing something or is it as simple as, if Report Period is less than Project Starting Date then blank, otherwise 1?
- GrumeloAdvocate II
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.
- v-danhe-msftMicrosoft Employee
Hi Grumelo,
Based on my test, you could refer to below steps:
Sample data:
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:
You could also download the pbix file to have a view.
Regards,
Daniel He