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
Good Morning Everyone!
I am trying to create a BI report to tracks the success of new projects. Sales gives me their projected volumes for years 1, 2, and 3. I need a measure that looks at the first ship date (Posting Date) for the selected item and then groups it into year 1, 2, or 3. I tried
Solved! Go to Solution.
I'm assuming you want this as a calculated column in your table. That would be something like this.
Days =
VAR _ThisDate = 'Item Ledger Entries'[Posting Date]
VAR _ProjStart = CALCULATE ( MIN ( 'Item Ledger Entries'[Posting Date] ), ALLEXCEPT ( 'Item Ledger Entries', 'Item Ledger Entries'[Project] ) )
RETURN
DATEDIFF ( _ProjStart, _ThisDate, DAY )
I'm assuming you want this as a calculated column in your table. That would be something like this.
Days =
VAR _ThisDate = 'Item Ledger Entries'[Posting Date]
VAR _ProjStart = CALCULATE ( MIN ( 'Item Ledger Entries'[Posting Date] ), ALLEXCEPT ( 'Item Ledger Entries', 'Item Ledger Entries'[Project] ) )
RETURN
DATEDIFF ( _ProjStart, _ThisDate, DAY )
This worked beautifuly! Thank you so much!
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 |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 124 | |
| 101 | |
| 67 | |
| 49 |