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! It's time to submit your entry. Live now!
I have date slicer called ordered date. I need to show 2 lines in line chart x axis is ordered date and y axis is units. One line would be delivered units by delivered date and another shipped units by estimated date.
I am creating measure :
Solved! Go to Solution.
Hi @Anonymous,
You need an independent Date table. If you have one, please try it with this formula.
Calendar = CALENDARAUTO ()
Then the two measures could be like below. There should be two relationships, which one is active and the other is inactive.
Measure 1 = CALCULATE ( SUM ( 'Table'[Delivered Units] ), USERELATIONSHIP ( 'table'[Delivery Date], 'calendar'[date] ) )
Measure 2 = CALCULATE ( SUM ( 'Table'[shipped Units] ), USERELATIONSHIP ( 'table'[Ship Date], 'calendar'[date] ) )
Best Regards,
Dale
Hi @Anonymous,
Could you please mark the proper answers as solutions?
Best Regards,
Dale
I have date slicer called ordered date. I need to show 2 lines in line chart x axis is ordered date and y axis is units. One line would be delivered units by delivered date and another shipped units by estimated date.
I am creating measure :
You don't want to filter the table like that, you need to create relationships between a date table and your delivery and shipping date, and then utilise userelationship to utilise the relevant relationship as appropriate
I have connection between the 2 tables. How to use userrealationship ?
Hi @Anonymous,
You need an independent Date table. If you have one, please try it with this formula.
Calendar = CALENDARAUTO ()
Then the two measures could be like below. There should be two relationships, which one is active and the other is inactive.
Measure 1 = CALCULATE ( SUM ( 'Table'[Delivered Units] ), USERELATIONSHIP ( 'table'[Delivery Date], 'calendar'[date] ) )
Measure 2 = CALCULATE ( SUM ( 'Table'[shipped Units] ), USERELATIONSHIP ( 'table'[Ship Date], 'calendar'[date] ) )
Best Regards,
Dale
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 39 | |
| 24 | |
| 23 |
| User | Count |
|---|---|
| 144 | |
| 106 | |
| 63 | |
| 38 | |
| 31 |