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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.