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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
miinseon
Helper I
Helper I

bar chart with two measures

HI all

i want to show two measures in a bar chart.
For example, measure 1 is the number of visitors and measure 2 is the number of paying customers.
If visitors are 1000 and 200 paying customers, i want the range on the y-axis to change with the number of visitors and the number of paying customers to fall within the visitor bar.

See the image below. The graph on the right was created with shapes.

 

miinseon_0-1717038069116.png

Thanks 🙂

 

1 ACCEPTED SOLUTION
mark_endicott
Super User
Super User

@miinseon - You can use a Stacked Column Chart with two measures. See below:

 

Visitors Paying = SUMX( 'Table (9)', 'Table (9)'[Visitors] - 'Table (9)'[Paying] ) 

 

and

 

_Paying = SUM( 'Table (9)'[Paying] ) 

 

mark_endicott_0-1717059612264.png

 

 

View solution in original post

4 REPLIES 4
mark_endicott
Super User
Super User

@miinseon - Sorry I realised I placed the bars the wrong way round, in my screenshot it is just a case of swapping the two measures around on the axis. 

 

As the DAX I have provided has works, please could you mark this as the solution? It makes it easier for people to find, and it will take it out of the "Unresolved topics" bin!

 

Thanks, 

mark_endicott
Super User
Super User

@miinseon - You can use a Stacked Column Chart with two measures. See below:

 

Visitors Paying = SUMX( 'Table (9)', 'Table (9)'[Visitors] - 'Table (9)'[Paying] ) 

 

and

 

_Paying = SUM( 'Table (9)'[Paying] ) 

 

mark_endicott_0-1717059612264.png

 

 

The value is not what I want.

But I solved it by applying your suggestion

I created and used (visitor - paying).


Thanks 🙂

If this works for you, please accept it as the solution!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.