Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

alternate of fixed function in power bi

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"

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@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.

View solution in original post

3 REPLIES 3
V-pazhen-msft
Community Support
Community Support

@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.

amitchandak
Super User
Super User

@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

Anonymous
Not applicable

Hi Amit,

I tried with you provided the solution in youtube but i am still getting some issue.

Calculated_test = CALCULATE(MAX(v_Daily_SNOW_Kanban[sys_created_on]),ALLEXCEPT(v_Daily_SNOW_Kanban,v_Daily_SNOW_Kanban[Number]))
 
i am getting the correct max of date from sys_created_on using allexcept filter with numbers.
preetiverma525_0-1617716957514.png

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.