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

Show Percentage as Number as Opposed to text

Hi Experts

 

How could i amend the following as number so the if conidition is met and i can apply my CF Rule

 

VAR _DutyPercentage =
IF(FORMAT(DIVIDE(_duty,_external,0),"0.0%;(0.0%)")<0,1,0)
 
The above is still as a text value
1 ACCEPTED SOLUTION

@Anonymous 

 

Ok, try:

IF(DIVIDE(_duty,_external,0) <0,1 , 0)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
PaulDBrown
Community Champion
Community Champion

@Anonymous 

Where does this expression come from _duty,_external,0





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

_Duyt and _External are other VAR in my formula..

VAR _external =
SUMX (
FILTER (
ALL ( Logistics_ ),
Logistics_[New_Reporting_Headers]="External Sales"
),
[__v_Act2020]
)
VAR _Duty =
SUMX (
FILTER (
ALL ( Logistics_ ),
Logistics_[New_Reporting_Headers]="Duty"
),
[__v_Act2020]
)

 

@Anonymous 

 

Ok, try:

IF(DIVIDE(_duty,_external,0) <0,1 , 0)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






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.