Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi Guys,
i've created the below formula and it is working for only condition Unit = THM and not for Unit = DTH.
Does the formula picks only 1 condition at a time?
Regards,
Himanshu
Solved! Go to Solution.
@Anonymous , Use || or In
Annual Usage (DTH) = IF (
[typename] = "Nat Gas" && [Unit] = "THM" || [Unit] = "DTH",
ROUND ( [AnnualUsage] / 10.0, 0 )+0)+0, 0)
Annual Usage (DTH) = IF (
[typename] = "Nat Gas" && [Unit] in{ "THM" , "DTH" },
ROUND ( [AnnualUsage] / 10.0, 0 )+0)+0 ,0)
added else part, change as per need
Hi @Anonymous
Annual Usage (DTH) =
IF (
[typename] = "Nat Gas" && [Unit] IN { "THM", "DTH" },
ROUND ( [AnnualUsage] / 10.0, 0 )
) + 0
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @Anonymous
Annual Usage (DTH) =
IF (
[typename] = "Nat Gas" && [Unit] IN { "THM", "DTH" },
ROUND ( [AnnualUsage] / 10.0, 0 )
) + 0
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
@Anonymous , Use || or In
Annual Usage (DTH) = IF (
[typename] = "Nat Gas" && [Unit] = "THM" || [Unit] = "DTH",
ROUND ( [AnnualUsage] / 10.0, 0 )+0)+0, 0)
Annual Usage (DTH) = IF (
[typename] = "Nat Gas" && [Unit] in{ "THM" , "DTH" },
ROUND ( [AnnualUsage] / 10.0, 0 )+0)+0 ,0)
added else part, change as per need
Thanks Amit for the help as usual 🙂
Regards,
Himanshu
| User | Count |
|---|---|
| 52 | |
| 41 | |
| 32 | |
| 15 | |
| 13 |
| User | Count |
|---|---|
| 84 | |
| 72 | |
| 37 | |
| 27 | |
| 24 |