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
Michaelkuesten
New Member

create a graph where I have the market share of 3 brands (values) and 10 countries (Axis).

Hello, I want to create a graph where I have the market share of 3 brands (values) and 10 countries (Axis).

 

The problem is that the % of grand total is made only one the filtered 10 countries but I want the total to be made on all countries on my database. Is it possible ?

question1.png

1 ACCEPTED SOLUTION
ray_ux
Memorable Member
Memorable Member

@Michaelkuesten 

Yes it's possible.

You'll need to create a measure

YourMeasure =
VAR CurrentTotal = SUM(YourValueColumn)
VAR AllTotal = 
CALCULATE( 
  SUM(YourValueColumn)
  ,ALLEXCEPT(YourTable , YourBrandColumn , AnyOtherColumnsYouWantToGroupBy )
)
RETURN
DIVIDE
  (CurrentTotal 
  ,AllTotal
)

 

Something like this ^

 

View solution in original post

2 REPLIES 2
ray_ux
Memorable Member
Memorable Member

@Michaelkuesten 

Yes it's possible.

You'll need to create a measure

YourMeasure =
VAR CurrentTotal = SUM(YourValueColumn)
VAR AllTotal = 
CALCULATE( 
  SUM(YourValueColumn)
  ,ALLEXCEPT(YourTable , YourBrandColumn , AnyOtherColumnsYouWantToGroupBy )
)
RETURN
DIVIDE
  (CurrentTotal 
  ,AllTotal
)

 

Something like this ^

 

Thank you so much @ray_ux 
I'm going to try

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.