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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Henrik_99
Resolver I
Resolver I

Charticulator vs Matrix - average of the source data

Hi,

it seems that Charticulator calculate the average of the data behind the visuals and not the values of the source data. 

 

Example - 58% is the average of 80% (742/932) and 36% (5971/16622), correct is 38% (=6713/ 17554 (source data).

 

any idea ? Thanks./ H.

 

 Capture.JPG

1 ACCEPTED SOLUTION

Hi @Henrik_99 ,

 

You may try this measure.

Measure = var _cost=CALCULATE(SUM('Table'[Cost]),ALLEXCEPT('Table','Table'[System]))
var _budget=CALCULATE(SUM('Table'[Budget]),ALLEXCEPT('Table','Table'[System]))
return 
IF(ISINSCOPE('Table'[Area]),SUM('Table'[ %]),DIVIDE(_cost,_budget))

vstephenmsft_0-1646039562608.png

I have the subtotals in the matrix showing the mean.

 

Best Regards,

Stephen Tao

 

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

4 REPLIES 4
Henrik_99
Resolver I
Resolver I

Thanks Stephen:)

v-stephen-msft
Community Support
Community Support

Hi @Henrik_99 ,

 

If you want to get 38%, then your formula has to calculate the numerator of KE plus the numerator of KI, divided by the denominator of KE plus the denominator of KI.

Is it possible to provide some dummy data and expected results?

 

Best Regards,

Stephen Tao

 

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

Hi Stephen,

Here is the expected outcome and dummy data

38% is based on Cost/Budget

Secondly if you drillthough on right bar chart 17 554 it does not give me the expected outcome. However if you rightclick on 80% then it does. Any thoughts?

Rgds Henrik

Capture.JPG

ItemAreaCostBudgetSystem %
A1KE742932OG80 %
A2KI597116622OG36 %
A2KI3441037MG33 %
A4KE10771431MG75 %

Hi @Henrik_99 ,

 

You may try this measure.

Measure = var _cost=CALCULATE(SUM('Table'[Cost]),ALLEXCEPT('Table','Table'[System]))
var _budget=CALCULATE(SUM('Table'[Budget]),ALLEXCEPT('Table','Table'[System]))
return 
IF(ISINSCOPE('Table'[Area]),SUM('Table'[ %]),DIVIDE(_cost,_budget))

vstephenmsft_0-1646039562608.png

I have the subtotals in the matrix showing the mean.

 

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.