Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
545
Frequent Visitor

Count Measure with Filter

i have this measure:

# Total_Eng_reports_By_date =
VAR x = CALCULATE(DISTINCTCOUNT(qryAssemblyProcessReport[ItemID]), tblStations[StationCode]=28)
return IF(ISBLANK(x), 0,x)
 
the date is set to 4/3/2024 
 
it checks if the item is in station 28, and if it is so then it counts it as 1.
 
 it counted 5.
545_0-1713169950159.png

 

but there are 16 in power query 

 

 

AssemblyDocNo             ItemID                   itemclass        OrderID                stationcode           employeecode       process date   

545_1-1713170027374.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @545,

Perhaps You can add variable table with summarize function to calculate the measure formula on the detail level. Then you can summary it's result based on iterator aggregation functions.

Measure Totals, The Final Word - Microsoft Fabric Community

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @545,

Perhaps You can add variable table with summarize function to calculate the measure formula on the detail level. Then you can summary it's result based on iterator aggregation functions.

Measure Totals, The Final Word - Microsoft Fabric Community

Regards,

Xiaoxin Sheng

_AAndrade
Super User
Super User

Hi @545,

Can you provide a sample pbix file with same data so I can take a look?

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




545
Frequent Visitor

is there a quick way to do that?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors