Forum Discussion
bga1
6 years agoFrequent Visitor
Clustered Column chart with two value fields
Hi! I have a table [orders]. There are two date columns, one is "order_received_date" and the other is "order_despatched_date" I want to have a Clustered column chart with x-Axis [Date] and y-Ax...
- 6 years ago
This is easily done with the USERELATIONSHIP function.
First, on the relationship modeling tab create a link for both date columns, you'll notice the second one is inactive but we can use the above function to have the measure use that relationship instead.
Now create a measure that uses calculate to use that inactive relationship.
Measures:
Despatched Count = CALCULATE(COUNT(Orders[Order_No]),USERELATIONSHIP(CalendarTable[Date],Orders[order_despatched_date])) Received Count = COUNT(Orders[Order_No])Orders Table:Visual fields:
RMB
6 years agoResolver II
This is easily done with the USERELATIONSHIP function.
First, on the relationship modeling tab create a link for both date columns, you'll notice the second one is inactive but we can use the above function to have the measure use that relationship instead.
Now create a measure that uses calculate to use that inactive relationship.
Measures:
Despatched Count = CALCULATE(COUNT(Orders[Order_No]),USERELATIONSHIP(CalendarTable[Date],Orders[order_despatched_date]))
Received Count = COUNT(Orders[Order_No])
Orders Table:
Visual fields: