Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have a matrix where I have 2 calculated measure columns:
How do I get the totals as an average rather than the same calculations as the rest of the column?
Try this:
Availability =
VAR MyVar =
IFERROR (
(
SUM ( 'Dates'[Hours] ) - SUM ( 'Reliability Data'[Planned Outage] )
- SUM ( 'Reliability Data'[Unplanned Outage] )
)
/ ( SUM ( 'Dates'[Hours] ) ),
1
)
RETURN
IF (
ISINSCOPE ( 'Reliability Data'[TAG] ),
// [TAG] or any field you will use in your matrix
MyVar,
AVERAGEX ( 'Reliability Data', MyVar )
)
Unfortunately that returns the same results as I currently have in both the column and the total
Then try this:
Availability =
VAR MyVar =
IFERROR (
(
SUM ( 'Dates'[Hours] ) - SUM ( 'Reliability Data'[Planned Outage] )
- SUM ( 'Reliability Data'[Unplanned Outage] )
)
/ ( SUM ( 'Dates'[Hours] ) ),
1
)
RETURN
IF (
ISINSCOPE ( 'Reliability Data'[TAG] ),
// [TAG] or any field you will use in your matrix
MyVar,
MyVar
/ COUNTROWS ( SUMMARIZE ( 'Reliability Data'[TAG], 'Reliability Data'[SYSTEM] ) )
)
User | Count |
---|---|
123 | |
69 | |
67 | |
58 | |
52 |
User | Count |
---|---|
185 | |
92 | |
67 | |
62 | |
52 |