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.
=IF(M4>0, "P",IF((L4-M4)>0, "AP", [@[Fin Year]])) in excel is working but BI it is not working the formula
Solved! Go to Solution.
Hi, @sameergupta60
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
bar-1:
If you want to create a calculated column with dax, you may try the following codes.
Result =
IF(
'bar-1'[PPCJU1]>0,
"P",
IF(
'bar-1'[PPCYTD]-'bar-1'[PPCJU1]>0,
"AP",
CONCATENATE('bar-1'[Fin year],"")
)
)
If you want to create a custom column in Power Query, you may create a custom column with the following codes.
=if [PPCJU1]>0 then "P" else if ([PPCYTD]-[PPCJU1])>0 then "AP" else Text.From([Fin year])
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @sameergupta60
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
bar-1:
If you want to create a calculated column with dax, you may try the following codes.
Result =
IF(
'bar-1'[PPCJU1]>0,
"P",
IF(
'bar-1'[PPCYTD]-'bar-1'[PPCJU1]>0,
"AP",
CONCATENATE('bar-1'[Fin year],"")
)
)
If you want to create a custom column in Power Query, you may create a custom column with the following codes.
=if [PPCJU1]>0 then "P" else if ([PPCYTD]-[PPCJU1])>0 then "AP" else Text.From([Fin year])
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thank you so much for the help.
i have one more query can you guide us.
Colour Project1 =
VAR Dept =
SELECTEDVALUE( 'bar-1'[Slab Data] )
RETURN
Switch(True(),
Dept = "P", "#FFFFFF",
Dept = "-" , "#89de21",
Dept >"0-" , "#89de21",
Dept = "`", "#FFE12D",
Dept = ".","#d9dedd",
Dept = ",","#f56342"
)
in that, I have a colour cell but unable to colour the number 22,23 in a different colour can help us.
yes, I want a power query.
Can you please guide on above Dax issue
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
53 | |
21 | |
12 | |
12 |