Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
=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.
Please help on above dax
Can you please guide on above Dax issue
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |