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
mg01
Helper I
Helper I

Correct total for Price Column

mg01_0-1685592532463.png

Hi Team,

Above is my table, by which I'm creating a table visual with Product and Price column but price total is not coming correct, For example, for A it should be 2, For B it should be 3. But on summarizing it giving 4 for A, 6 for B. Is there any way by which we can achieve this.

Required O/P: Total should be 5, Price value should be 2 for A, 3 for B, it should not aggregate like 4 for A, 6 for B. And also I need total in this visual.

mg01_1-1685593193243.png

Thanks,
Mohit

 

 







 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @mg01 
You need to summarize the price in a way that will calculate only 1 appearance to get accurate results.
So create a measure with the formula :

SumPrice = sumx(VALUES('Table'[Product]),FIRSTNONBLANK('Table'[Price],0))
Ritaf1983_0-1685599012861.png

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @mg01 
You need to summarize the price in a way that will calculate only 1 appearance to get accurate results.
So create a measure with the formula :

SumPrice = sumx(VALUES('Table'[Product]),FIRSTNONBLANK('Table'[Price],0))
Ritaf1983_0-1685599012861.png

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

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.