Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello i need to calculated column to flag rows that are having the same date as ones from other tables, like this:
Also, i have no relationship between these two tables:
ID | Date | Check Column |
1 | 05/02/2020 | 1 |
1 | 06/02/2020 | 0 |
2 | 05/02/2020 | 1 |
2 | 07/02/2020 | 0 |
3 | 05/02/2020 | 0 |
4 | 05/02/2020 | 0 |
5 | 06/02/2020 | 0 |
6 | 05/02/2020 | 1 |
ID | Dates |
1 | 05/02/2020 |
1 | 07/02/2020 |
2 | 05/02/2020 |
3 | 06/02/2020 |
5 | 07/02/2020 |
6 | 05/02/2020 |
Solved! Go to Solution.
pls set the ID column to TEXT or try below DAX
Column =
var _check=maxx(FILTER(Table2,'Table 1'[ID]=Table2[ID]&&'Table 1'[Date]='Table2'[Dates]),Table2[ID])
return if(isblank(_check),0,1)
Proud to be a Super User!
Hello, @ryan_mayu and thank you for your answer. It seems i got an error: "DAX comparison operations do not support comparing values of type Integer with values of type Text". I've check whay type of data are both of the column, Whole number and Date. Do you have any idea what should i do?
pls set the ID column to TEXT or try below DAX
Column =
var _check=maxx(FILTER(Table2,'Table 1'[ID]=Table2[ID]&&'Table 1'[Date]='Table2'[Dates]),Table2[ID])
return if(isblank(_check),0,1)
Proud to be a Super User!
pls try this
Column =
var _check=maxx(FILTER(Table2,'Table 1'[ID]=Table2[ID]&&'Table 1'[Date]='Table2'[Dates]),Table2[ID])
return if(_check="",0,1)
pls see the attachment below
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
86 | |
84 | |
66 | |
62 | |
59 |
User | Count |
---|---|
197 | |
118 | |
108 | |
78 | |
69 |