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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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