Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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:
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 16 | |
| 11 | |
| 10 | |
| 6 | |
| 5 |