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

Hide the operator?

I'm using a measure in a matrix, and for some reason the value is showing the subtraction operator (see the attached image - none of these values are negative, that's the operator). This makes the visual unusuable. How do I remove it? Thanks!

 

Link to Image

1 ACCEPTED SOLUTION

If you want it to always show a postive number regardless of the output, just convert it to an absolute value. Wrap your measure in =ABS()



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

4 REPLIES 4
edhans
Super User
Super User

The result of subtracting the MaxYear from MinYear is resulting in negative numbers. The visual isn't showing the operator. It is showing results of the math.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
TonyO
Frequent Visitor

Thank you for your suggestion! The result of the function is displayed in the 'Total' field (which can be negative) - the data in the date rows will never be negative.

.

If I remove the variable filter and shorted it to a CONCATENATE(SUM - SUM) the minus operator goes away, but for some reason when I'm doing a CONCATENATE(SUM,var) - CONCATENATE (SUM,var) the operator is present in the output.

If you want it to always show a postive number regardless of the output, just convert it to an absolute value. Wrap your measure in =ABS()



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
TonyO
Frequent Visitor

Thanks Ed, that worked. 

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.