Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi @Anonymous ,
Based on my testing, please try the following methods:
1.Create the sample table.
2.Create the measure to calculate kpi values.
KPI =
var _numer = SUMX('Table', 'Table'[NUMERATOR])
var _de = SUMX('Table', 'Table'[DENOMINATOR])
RETURN
DIVIDE(_numer, _de)
3.Drag the measure into the card visual. The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Based on my testing, please try the following methods:
1.Create the sample table.
2.Create the measure to calculate kpi values.
KPI =
var _numer = SUMX('Table', 'Table'[NUMERATOR])
var _de = SUMX('Table', 'Table'[DENOMINATOR])
RETURN
DIVIDE(_numer, _de)
3.Drag the measure into the card visual. The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Try using var
Proud to be a Super User! |
|
@Anonymous , Try using below method
Create a measure for the cumulative sum of the numerator:
Cumulative Numerator =
CALCULATE(
SUM(G[NUMERATOR]),
FILTER(
ALLSELECTED(G),
G[Date] <= MAX(G[Date])
)
)
Create a measure for the cumulative sum of the denominator:
Cumulative Denominator =
CALCULATE(
SUM(G[DENOMINATOR]),
FILTER(
ALLSELECTED(G),
G[Date] <= MAX(G[Date])
)
)
Create the KPI value measure using the cumulative sums:
KPI VALUE =
DIVIDE(
[Cumulative Numerator],
[Cumulative Denominator]
)
ALLSELECTED(G) ensures that the calculation respects the current context of filters applied in your report.
Proud to be a Super User! |
|
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
82 | |
65 | |
51 | |
31 |
User | Count |
---|---|
117 | |
116 | |
71 | |
64 | |
39 |