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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
AshP
Frequent Visitor

How to use multiple measures in single X/Y axis in chart

Hi all,

 

I have created multiple measures to sum up sales for different days like D1,D2,D3 etc for different stores

 

Now I need to create a line or bar chart with them but they should all be in x-axis. Like if I can create a group and put it in x.axis

 

Something like this :

 

AshP_2-1710420861097.png

I tried creating a calculated group and using it in x-axis, but not working as expected. Can you help me with this ?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @AshP ,

 

In powerbi destkop, the y-axis in the clustered column chart supports multiple measure values. Just like below:

m_a =
CALCULATE (
    SUM ( YourTable[Sales] ),
    FILTER ( YourTable, YourTable[Store] = "A" )
)
m_b =
CALCULATE (
    SUM ( YourTable[Sales] ),
    FILTER ( YourTable, YourTable[Store] = "B" )
)

vkongfanfmsft_0-1711439726771.png

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @AshP ,

 

In powerbi destkop, the y-axis in the clustered column chart supports multiple measure values. Just like below:

m_a =
CALCULATE (
    SUM ( YourTable[Sales] ),
    FILTER ( YourTable, YourTable[Store] = "A" )
)
m_b =
CALCULATE (
    SUM ( YourTable[Sales] ),
    FILTER ( YourTable, YourTable[Store] = "B" )
)

vkongfanfmsft_0-1711439726771.png

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @AshP ,

 

You can achieve a similar effect with dynamic measure values. Refer to the following example:

D1 Sales = SUMX(FILTER('YourTable', 'YourTable'[Day] = "D1"), 'YourTable'[Sales])
D2 Sales = SUMX(FILTER('YourTable', 'YourTable'[Day] = "D2"), 'YourTable'[Sales])
D3 Sales = SUMX(FILTER('YourTable', 'YourTable'[Day] = "D3"), 'YourTable'[Sales])
result = SWITCH (
   SELECTEDVALUE('NewTable'[Day]),
   "D1", [D1 Sales],
   "D2", [D2 Sales],
   "D3", [D3 Sales],
   BLANK()
)

vkongfanfmsft_2-1710472356157.png

 

vkongfanfmsft_3-1710472374314.png

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi Adamk, Thank you for your reply, But I can't use measures in the slicers as the customer requested to have all the days sales(D1,D2,D3 etc in one visual for different stores so that they can compare at a time.  

AshP_0-1710494331806.png

Some thing like above. Can we put all the measures in a column and use it in X or Y axis ? Is there anyway to achieve this ? 

Thank you

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors