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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Here is a small dataset sample. I have a single table and no connecting relationships.
| Run Date | Order # | On ATP | Order on ATP |
| 8/9/2023 | 1 | TRUE | TRUE |
| 8/9/2023 | 1 | TRUE | TRUE |
| 8/9/2023 | 1 | TRUE | TRUE |
| 8/9/2023 | 2 | FALSE | FALSE |
| 8/9/2023 | 2 | TRUE | FALSE |
| 8/9/2023 | 2 | FALSE | FALSE |
| 8/10/2023 | 1 | TRUE | TRUE |
| 8/10/2023 | 1 | TRUE | TRUE |
| 8/10/2023 | 1 | TRUE | TRUE |
| 8/10/2023 | 2 | FALSE | FALSE |
| 8/10/2023 | 2 | TRUE | FALSE |
| 8/10/2023 | 2 | FALSE | FALSE |
| 8/11/2023 | 1 | TRUE | TRUE |
| 8/11/2023 | 1 | TRUE | TRUE |
Each day, I need to determine if the entire order is on ATP or not. The desired result is the last column. As you can see, not all order lines are on ATP. I need a column or measure that returns a TRUE statement if the all lines on the order for that day are TRUE for On ATP.
Hope that makes sense.
Thanks,
Solved! Go to Solution.
Simple enough,
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Thank you! I was using EARLIER on run date, but not on order #.
Hi @jwin2424
please try
Order on ATP =
VAR CurrentOrderATPs =
CALCULATETABLE (
VALUES ( 'Table'[On ATP] ),
ALLEXCEPT ( 'Table', 'Table'[Run Date], 'Table'[Order #] )
)
RETURN
IF ( COUNTROWS ( CurrentOrderATPs ) = 1, CurrentOrderATPs, FALSE )
As a side note, this worked as well. Thank you
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |