Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi everyone,
I have two date fields (Order Date & Shipped Date). I want to create a Shipped % field that will take the number of Orders in a month using the Shipped Date divided by the Orders in a month using the Order Date.
Any help is appreciated!
Solved! Go to Solution.
Hey @Anonymous ,
I assume the relationship is from the date table to the order date.
Try it with the following measures:
Orders = COUNTROWS( myTable )
Then for the Shipments you have to change the relationship in the measure:
Shipments =
CALCULATE(
COUNTROWS( myTable ),
USERELATIONSHIP ( 'Dates'[Date], 'myTable'[Shipping Date] )
)
Then for the percentage you can just divide the two measures:
Shipped % = DIVIDE( [Shipments], [Orders] )
Hi,
Share some data and show the expected result.
Hi @Ashish_Mathur ,
Unfortunately I can't share any of the data due to privacy rules but basically I would want to see that 50 orders shipped in March divided by the 150 orders that were created in March.
Hey @Anonymous ,
do you also have a date table?
Hi @selimovd ,
I do have a date table, but I had to create a custom column to adjust the time zone due to a timing issue within our system for the Order Date. When I try to use the date table, it removes the heirarchy from my custom Order Date. Even when I select new heirarchy, it doesn't work. I think there is something wrong with the relationship between the two tables.
Here is my Date Table:
Hey @Anonymous ,
I assume the relationship is from the date table to the order date.
Try it with the following measures:
Orders = COUNTROWS( myTable )
Then for the Shipments you have to change the relationship in the measure:
Shipments =
CALCULATE(
COUNTROWS( myTable ),
USERELATIONSHIP ( 'Dates'[Date], 'myTable'[Shipping Date] )
)
Then for the percentage you can just divide the two measures:
Shipped % = DIVIDE( [Shipments], [Orders] )
@Anonymous ,
I'm happy it worked eventually 🙂
Hey @selimovd,
I think you're suggestion is great.
I think my problem lies with the relationship between myTable and Date Table. This what I get when I just try to use the Date from the Date Table and the Orders from myTable:
and when I try the Shipments formula I get a message saying:
USERRELATIONSHIP function can only use the two columns references participating in relationship.
Both my dates are formatted the same.
@Anonymous
Can you post a screenshot of the relationship of these two tables?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 80 | |
| 40 | |
| 31 | |
| 27 | |
| 27 |