Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Saxon202202
Helper III
Helper III

Measure showing incorrect value in table

Hi,

 

I created measure for total based on the column in data table column and measure but the total showing is incorrectly in visual table.

 

NO OF UNIT REQ = ROUND(IFERROR(VALUE([SUM OF QTY])/CALCULATE(SUM(DATA[PER PACK QTY])),0),0)


Also the sum of row level showing is incorrectly in stacked chart.

 

TOTAL UNIT REQ = [NO OF PACK REQ]*CALCULATE(SUM(DATA[PER PACK VOLUME]))
 
Can you please advise why it's showing incorrect vale in table and stacked chart and how can I fix the problem. 
 
 Herewith attached the PBI and snapshot for your reference. 

 

https://www.dropbox.com/s/2j1cjvtgxxieqtu/DATA-VAR-I-23-08-2022.pbix?dl=0

 

https://www.dropbox.com/s/oztxsd6ztrj4co7/ERROR%20SNAPSHOT.PNG?dl=0

 

 

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Why are there so many tables L01, L02 etc?  What is the purpose of creating those tables?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
MFelix
Super User
Super User

Hi @Saxon202202 ,

 

Can you please explain a little bit better what is the result you are trying to achieve?

 

When I look at the measure that you have for the sum of quantity, you deriving your error since you are making it based on the MAX value so your calculation will always pick up the color L7.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelix ,

 

Thanks for your reply. I attached the snapshot for desired result.
For query1

Saxon202202_0-1661277881031.png

For query2
Saxon202202_1-1661277905452.png

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.