Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi, I have this dax function that counts blank rows based on condition.
No MTM Scan (OnTime) =
CALCULATE (
COUNTROWS ( 'GMS Flat File' ),
FILTER (
'GMS Flat File',
'GMS Flat File'[On_Time_Inb_Stretch_HTD] = 1
&& 'GMS Flat File'[Dest_Route_City_Nm] = "Wellington"
&&
'GMS Flat File'[MTM Entry Scan] = BLANK() || 'GMS Flat File'[MTM Exit Scan] = BLANK()))
The function returns incorrect result. It should be 11 rows as highlighted cells in screenshot below. The coutrows should be counting rows and not the cell.
Solved! Go to Solution.
hi @Anonymous
so you get more than 11?
if so try like:
No MTM Scan (OnTime) =
CALCULATE (
COUNTROWS ( 'GMS Flat File' ),
FILTER (
'GMS Flat File',
'GMS Flat File'[On_Time_Inb_Stretch_HTD] = 1
&& 'GMS Flat File'[Dest_Route_City_Nm] = "Wellington"
&&
( 'GMS Flat File'[MTM Entry Scan] = BLANK() || 'GMS Flat File'[MTM Exit Scan] = BLANK())))
hi @Anonymous
so you get more than 11?
if so try like:
No MTM Scan (OnTime) =
CALCULATE (
COUNTROWS ( 'GMS Flat File' ),
FILTER (
'GMS Flat File',
'GMS Flat File'[On_Time_Inb_Stretch_HTD] = 1
&& 'GMS Flat File'[Dest_Route_City_Nm] = "Wellington"
&&
( 'GMS Flat File'[MTM Entry Scan] = BLANK() || 'GMS Flat File'[MTM Exit Scan] = BLANK())))
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |