Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
52 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |