Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi All,
I am facing issues in deriving the expected month count as shown in Diagram A. The " - " is due to sales and return within the same month as illustrated in Diagram B
This is current dax that I have tried.
Mth Sales Count =
CALCULATE(
DISTINCTCOUNT('Calendar'[month]),
FILTER('Sales data',[Revenue]>0))
Diagram A (Above) / Diagram B (Bottom)
Appreciate any advice given! Thanks in advance!
Hi @Mosoky ,
Your calculation is counting the months within the dataset that have value above 0 so if we look at you data in fact you have 2 dates for Fruit that is October (Apple and Durian) and November (Orange), so the result is correct.
What is the result you need to have is it based on month or Category?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThis is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
76 | |
73 | |
42 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
42 |