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
Hello,
We need help to create a dax formule.
We have a calculated table which have the following columns (Training, Email, Date, Statut, Source)
For one person, he could do the training in serveral applications (LWL, CHINA, PROOFPOINT). But the key of this table should be Training and Email. Based on the data from the different source (LWL, CHINA ou PROOFPOINT) and Statut (DONE, NOT DONE) we delete the row.
So the aim is to create a new column to decide which row should be deleted (the value of this field will be "DELETED" ou "KEPT")
Solved! Go to Solution.
Hi @yuzexi ,
I have created a simiple sample, please refer to it to see if it helps you.
Create a measure.
Measure =
IF (
MAX ( 'Table'[statut] ) = "NOT DONE"
&& MAX ( 'Table'[cource] ) = "LWLAPP",
"DELETE",
IF (
MAX ( 'Table'[statut] ) = "DONE"
&& MAX ( 'Table'[cource] ) = "CHINA",
"DELETE",
"KEPT"
)
)
If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @yuzexi ,
I have created a simiple sample, please refer to it to see if it helps you.
Create a measure.
Measure =
IF (
MAX ( 'Table'[statut] ) = "NOT DONE"
&& MAX ( 'Table'[cource] ) = "LWLAPP",
"DELETE",
IF (
MAX ( 'Table'[statut] ) = "DONE"
&& MAX ( 'Table'[cource] ) = "CHINA",
"DELETE",
"KEPT"
)
)
If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello,
Thank you very much for your proposal.
Howerver it seems not the resultat which I am waiting for. I added your formule in the measure _M_SOURCE_DELEE. for the sessionID 764, it is correct. CHINA should be deleted and LWL APP should be kept. But for the sessionID 233, LWL APP should be deleted and CHINA should be kept as it is "LWL APP" who is not done (M_DONE_OU_PAS).
Thanks a lot for your help,
regards,
Zexi
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |