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.
Hi,
I have belwo scenairo where ValuePercentage_Calc field should show Avgerage value at ClientName level. Image show what i intend to do.
Data source is SSAS Tabular live connection. ValueOne and ValueTwo are also calculated measures at PBI desktop based on many other numeric fields.
Thanks
Manoj
Solved! Go to Solution.
@manalla ,
Please try this:
ValuePercentage_Calc = averagex(values(TestTable[Project]),CALCULATE(sum(TestTable[ValueOne])/sum(TestTable[ValueTwo])))
edit: oops looks like the client name is the xyz, should be project level (proj 1, proj 2) in the above measure.
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
@manalla , Try like
averageX(Summarize(Table,Table[client Name], Table[Project name],"_1",CALCULATE(sum(TestTable[ValueOne])/sum(TestTable[ValueTwo]))),[_1])
@manalla , Try like
averageX(Summarize(Table,Table[client Name], Table[Project name],"_1",CALCULATE(sum(TestTable[ValueOne])/sum(TestTable[ValueTwo]))),[_1])
Hi @amitchandak
Thanks for reply, in my case ValueOne and ValueTwo are already calculted columns based on more than 10 different calculations. So i am not able to use SUM(). How else can we achieve? As table has many other columns (dimension levels), can we include all level in Summarize?
Thanks
Manoj
@manalla ,
Please try this:
ValuePercentage_Calc = averagex(values(TestTable[Project]),CALCULATE(sum(TestTable[ValueOne])/sum(TestTable[ValueTwo])))
edit: oops looks like the client name is the xyz, should be project level (proj 1, proj 2) in the above measure.
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
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 |
---|---|
117 | |
105 | |
69 | |
67 | |
43 |
User | Count |
---|---|
148 | |
103 | |
103 | |
88 | |
66 |