Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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:
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
22 | |
21 | |
20 | |
14 | |
11 |
User | Count |
---|---|
43 | |
34 | |
25 | |
23 | |
23 |