Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi, new to Power Bi, so probably a noob question.
In my data table, I have unique instances (say, "Fruits" tasted) and a comma-delimeted, multiple value column ("Comment") which I needed to unpivot.
Food | Price | Comment |
Pizza | 5 | instaworthy |
Pasta | 4 | good |
Apples | 3 | bad, ugly |
Howerver, this messes up the visualizations displaying, say, the total price, or the average price, of foods tasted.
Food | Price | Comment |
Pizza | 5 | instaworthy |
Pasta | 4 | good |
Apples | 3 | bad |
Apples | 3 | ugly |
How can I have my visualizations display the correct total price (12, not 15) and average price (4, not 3,75)?
I undestand that Wrong Totals after unpivoting some columns deals with the same issue, but I am not sure how to apply that to my visuals.
Solved! Go to Solution.
Try this MEASURE
Measure = SUMX ( VALUES ( Table1[Food] ), CALCULATE ( AVERAGE ( Table1[Price] ) ) )
Hi @LauriL
You could create measures as Zubair_Muhammad suggested
AVERAGE = AVERAGEX(VALUES(Sheet3[Food]),CALCULATE(AVERAGE(Sheet3[Price]))) SUM TOTAL = SUMX(VALUES(Sheet3[Food]),CALCULATE(AVERAGE(Sheet3[Price])))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @LauriL ,
follow my screenshots, then you can easily understanding how can I convert your solution.
1. see this is your data
2. Press column and go to the split column option and then click on By Delimiter option.
3. select the options like this and go to advanced options, change it Rows wise and quote character is none.
4. Final result are getting like this,
thanks & regards,
Naveen
Hi @LauriL
You could create measures as Zubair_Muhammad suggested
AVERAGE = AVERAGEX(VALUES(Sheet3[Food]),CALCULATE(AVERAGE(Sheet3[Price]))) SUM TOTAL = SUMX(VALUES(Sheet3[Food]),CALCULATE(AVERAGE(Sheet3[Price])))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try this MEASURE
Measure = SUMX ( VALUES ( Table1[Food] ), CALCULATE ( AVERAGE ( Table1[Price] ) ) )