Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
bga1
Frequent 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-Axis [Amount of orders].

There should be 2 bars aligned to each other (2 Values). One bar with amount of orders received and one bar with amount of orders despatched. 

 

It seemed like a simple task, but I just don't know how to do it. Do I need a separate date table or something?

 

Thx for your help!

 

1 ACCEPTED SOLUTION
RMB
Resolver II
Resolver 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.

 

sample.png

 

Now create a measure that uses calculate to use that inactive relationship.

sample2.png

 

Measures:

 

Despatched Count = CALCULATE(COUNT(Orders[Order_No]),USERELATIONSHIP(CalendarTable[Date],Orders[order_despatched_date]))

Received Count = COUNT(Orders[Order_No])

 

 
Orders Table:
sample3.png
 
Visual fields:
sample4.png

 

View solution in original post

1 REPLY 1
RMB
Resolver II
Resolver 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.

 

sample.png

 

Now create a measure that uses calculate to use that inactive relationship.

sample2.png

 

Measures:

 

Despatched Count = CALCULATE(COUNT(Orders[Order_No]),USERELATIONSHIP(CalendarTable[Date],Orders[order_despatched_date]))

Received Count = COUNT(Orders[Order_No])

 

 
Orders Table:
sample3.png
 
Visual fields:
sample4.png

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors