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.
Hi Power Users,
I'm new to power bi and learning. I'm trying to move tableau dash boards to power bi and struck with one measure.
Tableau Measure
CASE [Business Unit]
WHEN "ABC" THEN (IF([Date] > TODAY()) THEN FALSE
ELSE TRUE
END)
WHEN "CDE" THEN (IF([Date] > TODAY()) THEN FALSE
ELSE TRUE
END)
END
This measuew specifies if events are scheduled for future dates.
I need convert this measure to DAX.
Please help.
Thanks
Solved! Go to Solution.
Hi,
Create a calculated column using this below code.
@Kumarcy -
Try
Measure =
SWITCH (
SELECTEDVALUE ( TableName[Business Unit] ),
"ABC", IF ( SELECTEDVALUE ( TableName[Date] ) > TODAY (), FALSE(), TRUE() ),
"CDE", IF ( SELECTEDVALUE ( TableName[Date] ) > TODAY (), FALSE(), TRUE() ),
-1
)
Proud to be a Super User!
Sorry, I didn't inform earlier that the business unit feild is in separate table and that business unit as a slicer. when user select the business unit then i need to create sepate column and that column i need to use as slicer.
Hi,
Create a calculated column using this below code.
Should be something like:
SWITCH([Business Unit],
"ABC",IF([Date] > TODAY(),FALSE(),TRUE()),
"CDE",IF([Date] > TODAY(),FALSE(),TRUE())
)
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 |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |