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
mchacon
Advocate I
Advocate I

Net Sales as negative (negative sign numbers by Operating System Setting)

Value scenario:

 

Real amount as negative (false value)

Budget amount as positive (true value)

 

Take the amount greater than -1, [Net Sales] > -1 in order to CALCULATE them, filtering by text "Budget-2021" multiplying by -1, *-1, in order to keep the negative sign numbers by Operating System Setting. If value is false, it means negative numbers. Here you can get Real amount + Budget amount as negative, finally a Rolling Report (Real + Budget).

 

Measure:

Net Sale Rolling = IF([Net Sales] > -1,CALCULATE([Net Sale],Table'[Class] = "Budget-2021")*-1,[Net Sales])

 

Syntax

CALCULATE(<expression>[, <filter1> [, <filter2> [, …]]])

 

IF(<logical_test>, <value_if_true>[, <value_if_false>])

3 ACCEPTED SOLUTIONS
v-eqin-msft
Community Support
Community Support

Hi @mchacon ,

 

Sorry for that the information you have provided is not making the problem clear to me.🤔

 

Please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data to help us clarify your scenario.

 

Best Regards,
Eyelyn Qin
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

mchacon
Advocate I
Advocate I

Hello

 

Just as Tips and Tricks

View solution in original post

v-eqin-msft
Community Support
Community Support

Hi @mchacon ,

 

Sorry for my misunderstanding and thanks for your sharing!

 

Could you please repeat the original post as a new reply and then Accept it as the solution. More people will benefit from it. 

 

Best Regards,
Eyelyn Qin

View solution in original post

3 REPLIES 3
v-eqin-msft
Community Support
Community Support

Hi @mchacon ,

 

Sorry for my misunderstanding and thanks for your sharing!

 

Could you please repeat the original post as a new reply and then Accept it as the solution. More people will benefit from it. 

 

Best Regards,
Eyelyn Qin

mchacon
Advocate I
Advocate I

Hello

 

Just as Tips and Tricks

v-eqin-msft
Community Support
Community Support

Hi @mchacon ,

 

Sorry for that the information you have provided is not making the problem clear to me.🤔

 

Please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data to help us clarify your scenario.

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept 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.