Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I have the following table and I would like to calculate the number of blank invoice group by wbs1. The expected result should be 2. What's the good dax formula for that.
| Date | WBS1 | Account | Invoice |
| 2019-09-18 | GEM-00002-00 | 1180-00 | |
| 2019-09-18 | GEM-00002-00 | 1180-00 | |
| 2019-09-18 | GEM-00002-00 | 1180-00 | |
| 2019-09-18 | GEM-00002-00 | 1180-00 | |
| 2019-09-18 | GEM-00002-00 | 1180-00 | |
| 2019-09-18 | GEM-00002-00 | 1180-00 | |
| 2019-09-18 | GEM-00002-00 | 1180-00 | |
| 2019-09-18 | GEM-00002-00 | 1180-00 | |
| 2019-09-18 | GEM-00002-00 | 1180-00 | |
| 2019-09-18 | GEM-00002-00 | 1180-00 | |
| 2019-09-18 | GEP-00002-00 | 1180-00 | |
| 2019-09-18 | GEP-00002-00 | 1180-00 |
Solved! Go to Solution.
Hi,
This measure works
=CALCULATE(DISTINCTCOUNT(Data[WBS1]),Data[Invoice]=BLANK())
Hope this helps.
Hi,
This measure works
=CALCULATE(DISTINCTCOUNT(Data[WBS1]),Data[Invoice]=BLANK())
Hope this helps.
Hi @Anonymous ,
We can try to use the following measure to meet your requirement:
Measure =
COUNTROWS (
FILTER (
SUMMARIZECOLUMNS (
'Table'[WBS1],
"Max_Invoice", MAX ( 'Table'[Invoice] )
),
[Max_Invoice]
= BLANK ()
)
)
Best regards,
Hi,
give this a try:
Count blank row =
SUMX (
SELECTCOLUMNS (
SUMMARIZE ( 'Table'; 'Table'[WBS1] );
"Count"; IF (
CALCULATE ( COUNTROWS ( 'Table' ); 'Table'[Invoice] = BLANK () ) > 0;
1;
0
)
);
[Count]
)
Regards Frank AT
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.