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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
lichinka
Frequent Visitor

DISTINCTCOUNT correct by days BUT incorrect by month

Hi Experts,
I have a simplified dataset like below:


I require a measure to be able to count the DISTINCT OL_id filtering out any OL_id that has a value of <0 .

 

POC_Qty = CALCULATE ( DISTINCTCOUNT ( 'Sales'[Area_Id] ); 'Sales'[SaleDal] > 0 )

 



How to get the correct result by the month?

1 REPLY 1
Anonymous
Not applicable

I know this is a pretty old thread but i think

POC_Qty = CALCULATE( SUM ( DISTINCTCOUNT ( 'Sales'[Area_Id] )); 'Sales'[SaleDal] > 0 )

should work. 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.