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.
Hello
In Power Query I want to create a custom column that returns a yes or no for the MAX load_timestamp for each given cardId.
|
Thank you in advance!
Solved! Go to Solution.
Hi @onernoa,
Firstly you need to click on the Data Icon on the left border and open the table in which you want to put the Desired Column.
Now, paste the DAX forumla into formula bar and click on the Tick Icon.
Desired Column =
var MaxTimestamp = CALCULATE (
MAX ( 'Table'[load_timestamp]),
ALLEXCEPT ( 'Table', 'Table'[cardId] )
)
var result = if( 'Table'[load_timestamp] = MaxTimestamp, "Yes", "No")
return result
If this answers your question, please mark it as a solution!
Hi @onernoa,
Firstly you need to click on the Data Icon on the left border and open the table in which you want to put the Desired Column.
Now, paste the DAX forumla into formula bar and click on the Tick Icon.
Desired Column =
var MaxTimestamp = CALCULATE (
MAX ( 'Table'[load_timestamp]),
ALLEXCEPT ( 'Table', 'Table'[cardId] )
)
var result = if( 'Table'[load_timestamp] = MaxTimestamp, "Yes", "No")
return result
If this answers your question, please mark it as a solution!
Many thanks. This has worked perfectly.
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 |
---|---|
111 | |
109 | |
89 | |
76 | |
67 |
User | Count |
---|---|
125 | |
111 | |
100 | |
83 | |
71 |