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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors