March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi, I would like to create an additional column to flag the first occurence of duplicate Table Name in each Environment as below:
say table name ABC appeared first in 1 Jan 2023 in DEV env, it should be flagged "1"
and this table can appear again in UAT env, it should be flagged as "1" again in its first appeared in UAT env.
how should I do it, either in DAX or PQuery?
thank you
Solved! Go to Solution.
Hi, @alice11987
I have a solution with DAX Calculated Column:
Flag =
VAR ename = Example[ENV]
VAR tname = Example[TABLE]
VAR firstocc = CALCULATE(MIN(Example[CREATED]),ALL(),Example[ENV]=ename,Example[TABLE]=tname)
RETURN
IF(Example[CREATED]=firstocc,1,0)
my results:
Hope this helps 🙂
Proud to be a Super User! | |
Hi, @alice11987
I have a solution with DAX Calculated Column:
Flag =
VAR ename = Example[ENV]
VAR tname = Example[TABLE]
VAR firstocc = CALCULATE(MIN(Example[CREATED]),ALL(),Example[ENV]=ename,Example[TABLE]=tname)
RETURN
IF(Example[CREATED]=firstocc,1,0)
my results:
Hope this helps 🙂
Proud to be a Super User! | |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |