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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
anshenterprice
Frequent Visitor

Bar Chart based on the two dimensions and one measure

Hi Team
Source Data

DateScriptnamebuy/saleQuantity
5/6/2022TataMotosbuy50
5/6/2022Reliencesale-150
5/6/2022HIUbuy50
5/6/2022Titanbuy50
5/12/2022TataMotosbuy100
5/12/2022Reliencesale-50
5/12/2022HIUbuy50
5/12/2022Titansale-50
5/12/2022InfoSale-50


Note: whatever buy quantiy it always sale same quantity then sum will become be 0 for a date
Output:
Xaxis is the date and each script name in the BAr graph with the QuantiTY

anshenterprice_0-1652680942845.png

 

 
 
 
 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @anshenterprice ,

 

Add the corresponding fields directly to the clustered column chart, or create a simple measure formula that will automatically group fields based on the fields in the legend:

vhenrykmstf_0-1654594264570.png

Measure = sum('Table'[Quantity])

vhenrykmstf_1-1654594320334.png


If the problem is still not resolved, please point it out. Looking forward to your reply.


Best Regards,
Henry


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

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @anshenterprice ,

 

Add the corresponding fields directly to the clustered column chart, or create a simple measure formula that will automatically group fields based on the fields in the legend:

vhenrykmstf_0-1654594264570.png

Measure = sum('Table'[Quantity])

vhenrykmstf_1-1654594320334.png


If the problem is still not resolved, please point it out. Looking forward to your reply.


Best Regards,
Henry


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

jaipal
Resolver III
Resolver III

@anshenterprice please download the file here

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.