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
Olumeedeh
Frequent Visitor

Inaccurate results displaying at Total

Hello Community,

I need the negative sign (-) in Pieces Out and Order shipped values to be removed. The total value displaying is not accurate as well.

 

See my measures formula:

Pieces Out = IF ( MIN ( 'Table Name'[Column] ) < 0, MIN ( 'Table Name'[Column]  ), BLANK () )
Orders Shipped = CALCULATE(SUM('Table Name'[Column] ),'Table Name'[Column]  IN {"CO"})

 

Olumeedeh_0-1657750724476.png

 

Cheers.

 

@amitchandak 

 

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @Olumeedeh ,

Please have a try.

Create a measure.

measure=
var _b = SUMMARIZE('table','table'[month],"aaa",'table'[Pieces Out])
return
IF(HASONEVALUE('table'[month]),'table'[Pieces Out],SUMX(_b,[aaa]))
measure_ordershipped=
var _b = SUMMARIZE('table','table'[month],"aaa",'table'[Orders Shipped])
return
IF(HASONEVALUE('table'[month]),'table'[Orders Shipped],SUMX(_b,[aaa]))

 

I have also found a helpful post, please refer to it to see if it helps you.

Dealing with Measure Totals 

 

If it does not help, please provide your pbix file without privacy information and more details with your desired output.

 

Best Regards
Community Support Team _ Polly

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

 

 

View solution in original post

3 REPLIES 3
v-rongtiep-msft
Community Support
Community Support

Hi @Olumeedeh ,

Please have a try.

Create a measure.

measure=
var _b = SUMMARIZE('table','table'[month],"aaa",'table'[Pieces Out])
return
IF(HASONEVALUE('table'[month]),'table'[Pieces Out],SUMX(_b,[aaa]))
measure_ordershipped=
var _b = SUMMARIZE('table','table'[month],"aaa",'table'[Orders Shipped])
return
IF(HASONEVALUE('table'[month]),'table'[Orders Shipped],SUMX(_b,[aaa]))

 

I have also found a helpful post, please refer to it to see if it helps you.

Dealing with Measure Totals 

 

If it does not help, please provide your pbix file without privacy information and more details with your desired output.

 

Best Regards
Community Support Team _ Polly

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

 

 

Thank you

amitchandak
Super User
Super User

@Olumeedeh ,

 

Try like

sumx(Values(Date[Month]), Pieces Out = IF ( MIN ( 'Table Name'[Column] ) < 0, MIN ( 'Table Name'[Column] ), BLANK () ) )

 

Refer to video from Curbal- If needed

https://www.youtube.com/watch?v=ufHOOLdi_jk

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.