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 moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I'm having some difficulty in calculating a flat annual rate on a monthly graph.
I have three tables:
Complaint Table is related to Date Table through a creation date field while the Case Table is related to the Date Table through case date field.
I have a combo line and stacked column chart where the bars are the number of complaints, the line is the complaint rate, and the x-axis is date displayed on a year-month level:
The goal is to add two flat lines to the graph:
I'm just not sure how to calculate on an annual basis when the graph is displayed on a monthly basis.
For reference:
Complaints =
CALCULATE (
DISTINCTCOUNT ( 'Complaint Table'[Complaint ID] ),
'Complaint Table'[Is this a complaint?] = "Yes"
) + 0
FT Complaint Rate = 'Complaint Table'[Complaints] / SUM('Case Table'[Total Cases])
Any help would be appreciated!
Solved! Go to Solution.
@PurpleWave22 Please try this measure
@PurpleWave22 Please try this measure
That worked! Thanks so much for your help.
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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 7 | |
| 5 |