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
Dear,
I have the following situation:
Raw Data
Column 1 Column 2 Column 3
ID 1 Task 1 Due Date A
ID 1 Task 2 Due Date B
ID 2 Task 1 Due Date C
ID 3 Task 1 Due Date D
ID 3 Task 2 Due Date D
ID 3 Task 3 Due Date E
ID n ...... ......
I need to select the due max due date, excluding the task 2 and considering the Column 1.
The result is the association of Max due date to ID (1,2,3, n) excluding some condiction (by Column 2).
Thank you!!!!
LD
Solved! Go to Solution.
Hi @camargos88 ,
Yes:
Column1 | Column2 | Due Date | Measure |
ID1 | Task Type A | Jan 31, 20 | March 31, 20 |
ID1 | Task type B | Mar 31, 20 | March 31, 20 |
ID2 | Task Type A | Aug 22,20 | Aug 22,20 |
ID3 | Task Type A | Apr 18, 20 | Apr 18, 20 |
ID3 | Task Type C | Jun 20, 20 | Apr 18, 20 |
ID4 | Task Type A | Apr 18, 20 | May 05,20 |
ID4 | Task Type B | May 05,20 | May 05,20 |
ID4 | Task Type C | Jun 15, 20 | May 05,20 |
so the task type C, is not considered into max value
Thank you
LD
@LD ,
Try this measure:
Hi @LD ,
Try this measure:
If you consider it as a solution, please mark as a solution and kudos.
Ricardo
Dear @camargos88 ,
Command is quite ok..., Please, I need to exclude some row based on the Column2 (for example Task2 in Cl2)
Thank You
LD
Yes, I'm sorry...
For example, I need to exclude (in ID3) the Due Date E because coming from Task3...
so all Task3 in every ID(1,2,3, n) will be not selected to determinate the max Due Date.
In the Example, the Due date should be "Due Date D"
I hope I was clear 🙂
Thank you!!!!
LD
Hi @camargos88 ,
Yes:
Column1 | Column2 | Due Date | Measure |
ID1 | Task Type A | Jan 31, 20 | March 31, 20 |
ID1 | Task type B | Mar 31, 20 | March 31, 20 |
ID2 | Task Type A | Aug 22,20 | Aug 22,20 |
ID3 | Task Type A | Apr 18, 20 | Apr 18, 20 |
ID3 | Task Type C | Jun 20, 20 | Apr 18, 20 |
ID4 | Task Type A | Apr 18, 20 | May 05,20 |
ID4 | Task Type B | May 05,20 | May 05,20 |
ID4 | Task Type C | Jun 15, 20 | May 05,20 |
so the task type C, is not considered into max value
Thank you
LD
@LD ,
Try this measure:
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 |
---|---|
25 | |
18 | |
15 | |
9 | |
7 |
User | Count |
---|---|
37 | |
31 | |
16 | |
16 | |
12 |