Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hey guys,
I have the following fact table that records mobile phone billings as at the last day of each month:
The table is connected to a Calendar table and a Mobile Service dim table that contains the details for every mobile service (number, plan type etc,). Each month the individual mobile services are categorised according to their data usage as either being Zero/Under, Excessive, or Nominal as per the Data Use Category column.
I would like to recreate the below stacked bar chart that counts the number of mobile services in the Zero/Under & Excessive categories for the past three months. By this I mean:
I am going to put this chart in a dashboard that is filterd by a single selection of MM-YY.
To summarise: a mobile service has to be classified as either Zero/Under or Excessive for three consectutive months up to and including the selected month or else it is counted as Nominal.
Any help constructing the neccessary measure(s) to accomplish this would be much appreciated.
Regards,
Steven.
Hi @Fusion_Tomo,
You can use the following DAX Formula:
Category = IF(CALCULATE(DISTINCTCOUNT('Table'[Data Usage Category],FILTER(DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-3,MONTH)))=1
&& 'Table'[Data Usage Category]<>"Nominal",
MAX('Table'[Data Usage Category]),
"Nominal")
Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: How to Export Telemetry Data from Azure IoT Central into Power BI
Thank you for taking the time to respond but that doesn't work - Power BI will not allow me to enter the 'Table'[Data Usage Category]<>"Nominal" condition and I'm not sure the logic of the formula is suited to the problem.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |