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.
I am trying to integrate tableua dashboad to power bi.
How can i convert the below query in tableua in to DAX measure.
IIF([Sys Created On]={FIXED[Number]:MAX([Sys Created On]) },"TRUE","FALSE"
Solved! Go to Solution.
@Anonymous
For the level of detail expression, you are correctly transformed to dax. However, to put everything in one column, you can just add a simple IF function, IF function (DAX) - DAX | Microsoft Docs.
Column =
var calculated_test = CALCULATE(MAX(v_Daily_SNOW_Kanban[sys_created_on]),ALLEXCEPT(v_Daily_SNOW_Kanban,v_Daily_SNOW_Kanban[Number]))
Return IF([Sys Created On]= calculated_test, True(), False())
But the above dax is a column formula, to create a measure you may use this dax:
Measure=
var calculated_test = CALCULATE(MAX(v_Daily_SNOW_Kanban[sys_created_on]),Filter(Allselected(v_Daily_SNOW_Kanban),v_Daily_SNOW_Kanban[Number]=MAX(v_Daily_SNOW_Kanban[Number]))
Return IF(MAX([Sys Created On])= calculated_test, True(), False())
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous
For the level of detail expression, you are correctly transformed to dax. However, to put everything in one column, you can just add a simple IF function, IF function (DAX) - DAX | Microsoft Docs.
Column =
var calculated_test = CALCULATE(MAX(v_Daily_SNOW_Kanban[sys_created_on]),ALLEXCEPT(v_Daily_SNOW_Kanban,v_Daily_SNOW_Kanban[Number]))
Return IF([Sys Created On]= calculated_test, True(), False())
But the above dax is a column formula, to create a measure you may use this dax:
Measure=
var calculated_test = CALCULATE(MAX(v_Daily_SNOW_Kanban[sys_created_on]),Filter(Allselected(v_Daily_SNOW_Kanban),v_Daily_SNOW_Kanban[Number]=MAX(v_Daily_SNOW_Kanban[Number]))
Return IF(MAX([Sys Created On])= calculated_test, True(), False())
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous , I covered that in this video -See if that can help
Tableau Vs Power BI- Chapter 6- LOD- FIXED (Level of Details)
https://www.youtube.com/watch?v=QdnOHcZqkPU
Hi Amit,
I tried with you provided the solution in youtube but i am still getting some issue.
but i need another column column to compare the calculated_test with the sys_cretaed_on is matched then true else false.
Could you please help me.
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 |
---|---|
107 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |