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
Anonymous
Not applicable

Error while creating a measure

Hi,

 

i'm trying to create a measure like below:

 

Variance = CALCULATE(SUM(CashReceiveds[Applied Total])+SUM(CashReceiveds[NoMatchAmount])-SUM(CashReceiveds[Amount]))
 
but its not giving the desired output as some of my numbers are getting added as the first outcome is coming in -ve i.e 
SUM(CashReceiveds[Applied Total])+SUM(CashReceiveds[NoMatchAmount]).
 
Can someone help me regarding this?
 
Desired output = $24 or $-50.
 

Not sure why values are coming in bracket in my visual.

 
Regards,
Himanshu
1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

currency.gif

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

View solution in original post

5 REPLIES 5
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

currency.gif

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

@Anonymous ,

 

Try to create a column using this DAX:

FORMAT('Table'[Column],"$#,###")
 
If this solves your issue, please mark this as a solution.
 
Regards,
Veena Shenolikar

Hi @Anonymous ,

 

I think you are using the Data Type "Currency". In this data type it shows negative values in brackets and positives without them.

 

Regards,

Veena Shenolikar

Anonymous
Not applicable

Yes I'm using the data type as currency only.

 

Is there no possibility that I can have the below output while having data type as currency.

 

Desired output = $24 or $-50.

 

When changing the data type its working fine but i want it to work on currency data type only.

 

Regards,

Himanshu

 

 

Anonymous
Not applicable

For reference: 

 

Himanshu_13_0-1605188846490.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.