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.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |