Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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] ) )
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
52 | |
39 | |
26 |
User | Count |
---|---|
80 | |
57 | |
45 | |
44 | |
35 |