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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
MBreden
Helper I
Helper I

Create a Combi Chart as in Excel

Hi all,

I have a simple data table with retailers, categories and values.
Now I want to display the relative ratio of retailers in each category by selecting a category.

The calculated values in a matrix are correct.

In a combination chart, a line is needed for the average.

I can do this in Excel, but fail in Power BI ☹️

 

SampleChartKombi.png

 

 

 


Can anyone help me?

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @MBreden 

 

You can try the following methods.

Measure = 
Var _N1=[TT Sum]
Var _N2=CALCULATE(SUM(Data[Value]),FILTER(ALL(Data),[Retailer]=SELECTEDVALUE(DimRetailer[Retailer])))
Return
DIVIDE(_N1,_N2)
Average = 
Var _Sum1=CALCULATE(SUM(Data[Value]),FILTER(ALL(Data),[Category]=MAX(DimCategory[Category])))
Var _Sum2=CALCULATE(SUM(Data[Value]),ALL(Data))
Return
DIVIDE(_Sum1,_Sum2)

vzhangti_0-1683270082237.png

Result:

vzhangti_1-1683270113420.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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
v-zhangti
Community Support
Community Support

Hi, @MBreden 

 

You can try the following methods.

Measure = 
Var _N1=[TT Sum]
Var _N2=CALCULATE(SUM(Data[Value]),FILTER(ALL(Data),[Retailer]=SELECTEDVALUE(DimRetailer[Retailer])))
Return
DIVIDE(_N1,_N2)
Average = 
Var _Sum1=CALCULATE(SUM(Data[Value]),FILTER(ALL(Data),[Category]=MAX(DimCategory[Category])))
Var _Sum2=CALCULATE(SUM(Data[Value]),ALL(Data))
Return
DIVIDE(_Sum1,_Sum2)

vzhangti_0-1683270082237.png

Result:

vzhangti_1-1683270113420.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

Hi @v-zhangti ,

I managed to add the measurements to my original file.

As the values in the categories are very different, I need the maximum of the retailers in the selected category to scale the Y-axis.

I hope you or another DAX professional can help me with the calculation?

Many thanks!

Hi @v-zhangti 

thanks for the measures, this already looks very good 😊

For the axes scaling I will try to create measures.

 

Best Regards

Melanie

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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