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.
Dear Experts
I would like to view 3 different average calculation on my report.
Business Share = Qty (ex Mat9)/Counter Size
Avg1 : Sum (Qty (exmat9))/Sum(Counter Size).
Avg2 : Sum of Business Share / No of Weeks only for Customer Group Alpha.
Avg3 : Sum (Qty (exmat9) for all customers of Group Alpha /Sum(Counter Size) for all customers of Group Alpha weekwise. (Ref: Page 2 on the PBI sample report)
Please can someone help me the DAX code to achieve these columns.
Attached the PBI sample report along.
https://drive.google.com/file/d/1GAZhMuXREG0ZxzcSDbMrPUdtT79VGqDG/view?usp=sharing
Thanks
Mahad
Solved! Go to Solution.
@Anonymous , Try measures like
calculate(divide(Sum (Table[Qty (exmat9)]),Sum(Table[Counter Size])), allselected())
calculate(divide(Sum (Table[Business Share]),Calculate(Countrows(Table), filter(Table, Table[Customer Group] ="Alpha"))), allselected())
calculate(divide(Calculate(Sum (Table[Business Share]), filter(Table, Table[Customer Group] ="Alpha")),Sum(Table[Counter Size])), allselected())
@Anonymous , Try measures like
calculate(divide(Sum (Table[Qty (exmat9)]),Sum(Table[Counter Size])), allselected())
calculate(divide(Sum (Table[Business Share]),Calculate(Countrows(Table), filter(Table, Table[Customer Group] ="Alpha"))), allselected())
calculate(divide(Calculate(Sum (Table[Business Share]), filter(Table, Table[Customer Group] ="Alpha")),Sum(Table[Counter Size])), allselected())
Dear Amit
Thanks for your code. I could not achieve the result except for 1st column. I have attached the sample data please can you try the code and advise me.
Appreciate your help on this.
Thanks
Mahad
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 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |