Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have the following table where I am trying to calculate the overall compliance (sum of numerator for VBP and NVBP/sum of denominator for VBP and NVBP) for each measure for each group. My table looks like the following:
CustomerMemberGroupName | VBP_Type | Measure Description | Numerator | Denominator | Compliance Rate |
Group 1 | NVBP | BCS-Breast Cancer Screening | 28 | 42 | 67% |
Group 1 | NVBP | CCS-Cervical Cancer Screening | 141 | 185 | 76% |
Group 1 | NVBP | COL-Colorectal Cancer Screening | 65 | 126 | 52% |
Group 1 | NVBP | W34-Well-Child Visits in the Third, Fourth, Fifth and Sixth Years of Life | 45 | 69 | 65% |
Group 1 | VBP | BCS-Breast Cancer Screening | 26 | 28 | 93% |
Group 1 | VBP | CCS-Cervical Cancer Screening | 117 | 132 | 89% |
Group 1 | VBP | COL-Colorectal Cancer Screening | 40 | 51 | 78% |
Group 1 | VBP | W34-Well-Child Visits in the Third, Fourth, Fifth and Sixth Years of Life | 71 | 90 | 79% |
Group 2 | NVBP | BCS-Breast Cancer Screening | 51 | 78 | 65% |
Group 2 | NVBP | CCS-Cervical Cancer Screening | 87 | 143 | 61% |
Group 2 | NVBP | COL-Colorectal Cancer Screening | 83 | 195 | 43% |
Group 2 | NVBP | W34-Well-Child Visits in the Third, Fourth, Fifth and Sixth Years of Life | 10 | 23 | 43% |
Group 2 | VBP | BCS-Breast Cancer Screening | 15 | 17 | 88% |
Group 2 | VBP | CCS-Cervical Cancer Screening | 18 | 22 | 82% |
Group 2 | VBP | COL-Colorectal Cancer Screening | 28 | 38 | 74% |
Group 2 | VBP | W34-Well-Child Visits in the Third, Fourth, Fifth and Sixth Years of Life | 1 | 1 | 100% |
Group 3 | NVBP | BCS-Breast Cancer Screening | 108 | 151 | 72% |
Group 3 | NVBP | CCS-Cervical Cancer Screening | 216 | 295 | 73% |
Group 3 | NVBP | COL-Colorectal Cancer Screening | 171 | 266 | 64% |
Group 3 | NVBP | W34-Well-Child Visits in the Third, Fourth, Fifth and Sixth Years of Life | 38 | 48 | 79% |
Group 3 | VBP | BCS-Breast Cancer Screening | 48 | 55 | 87% |
Group 3 | VBP | CCS-Cervical Cancer Screening | 94 | 118 | 80% |
Group 3 | VBP | COL-Colorectal Cancer Screening | 86 | 106 | 81% |
Group 3 | VBP | W34-Well-Child Visits in the Third, Fourth, Fifth and Sixth Years of Life | 32 | 44 | 73% |
Would I create a measure or several measures? I am unsure how to perform this calculation for my report. Can someone help?
Thanks so much,
Dea
Solved! Go to Solution.
hi @DRasmussen
@DRasmussen is this how your raw data looks like or your numerator and denominator are measure? In the exmaple you gave, for each row seems like you are diving N with D, correct?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi Parry,
This is the raw data. The numerators and denominators are not calculated fields or measures.
@DRasmussen seems like this is pretty straight forward until I'm missing something, add following measure
Compliace Rate =
DIVIDE ( SUM ( Table[Numerator] ), SUM ( Table[Denominator ) )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
It seems like we're almost there, except it is providing the compliance rate for all the groups aggregated together instead of by measure for each group. Does something else need to be added to the measure?
hi @DRasmussen
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
80 | |
67 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |