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 visualization that I created in PowerBI that looks like this. What I want to do is add a row (like the Total Row) that shows the average Hours/Pilot for the month subtotaled by the Equipment type. The number is a summation for each individual, so when I tried to add an average, it wanted to average the underlying data for the summation. Any ideas?
Solved! Go to Solution.
Hi @JKG,
I created a similar demo. Please download it from the attachment.
The problem here is we can't add a row. But we can get the result in the Total row. Please refer to the snapshot below.
totalIsEverage = IF ( HASONEVALUE ( DimProduct[ColorName] ), SUM ( Sales[SalesQuantity] ), AVERAGEX ( SUMMARIZE ( Sales, 'Calendar'[Datekey].[Year], 'Calendar'[Datekey].[Month], DimProduct[BrandName], DimProduct[ColorName], "totalSales", SUM ( Sales[SalesQuantity] ) ), [totalSales] ) )
Best Regards,
Hi @JKG,
I created a similar demo. Please download it from the attachment.
The problem here is we can't add a row. But we can get the result in the Total row. Please refer to the snapshot below.
totalIsEverage = IF ( HASONEVALUE ( DimProduct[ColorName] ), SUM ( Sales[SalesQuantity] ), AVERAGEX ( SUMMARIZE ( Sales, 'Calendar'[Datekey].[Year], 'Calendar'[Datekey].[Month], DimProduct[BrandName], DimProduct[ColorName], "totalSales", SUM ( Sales[SalesQuantity] ) ), [totalSales] ) )
Best Regards,
Thank you so much! It worked. I also discovered it worked to flip the data and add a calculated column using the following formula....
User | Count |
---|---|
77 | |
76 | |
41 | |
30 | |
24 |
User | Count |
---|---|
96 | |
91 | |
52 | |
47 | |
46 |