cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

Finding the total of two regions in same axis

Hello Team,

My question is, I have a Table stated below. Local market serves as unique coulmn, cluster is the regions comes under vodafone.

By the data, i have i can visually reprent it as the below two charts. one chart shows the two regions count and after drill trought i get the totals of both regions. Is there a way to show without drilldown, the count also in same x axis?. 

your answers are much appreciated.

mad_hu_0-1644227429574.png

mad_hu_1-1644227470823.png

mad_hu_2-1644227517677.png

I want to show like this.......

mad_hu_3-1644227840355.png

Regards,

Mad_hu

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can do this by customizing an axis.

1.Create a table as follows.(If the amount of data is small, you can enter data, and if the amount of data is large, you can create a calculated table.)

vstephenmsft_0-1644826250263.png

 

2.Create a measure using SWITCH function or IF function.

Measure = 
VAR _COUNT=CALCULATE(COUNT('Table'[Local Market]),FILTER(ALLSELECTED('Table'),[Cluster]=MAX('Table (2)'[Type])))
RETURN
SWITCH(SELECTEDVALUE('Table (2)'[Type]),"Big 4",_COUNT,"EU",_COUNT,"VF Total",CALCULATE(COUNT('Table'[Local Market]),ALLSELECTED('Table')))

vstephenmsft_1-1644826728568.png

Measure 2 = 
VAR _COUNT=CALCULATE(COUNT('Table'[Local Market]),FILTER(ALLSELECTED('Table'),[Cluster]=MAX('Table (2)'[Type])))
RETURN
IF(SELECTEDVALUE('Table (2)'[Type])="VF Total",CALCULATE(COUNT('Table'[Local Market]),ALLSELECTED('Table')),_COUNT)

vstephenmsft_2-1644826795054.png

 

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

3 REPLIES 3
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can do this by customizing an axis.

1.Create a table as follows.(If the amount of data is small, you can enter data, and if the amount of data is large, you can create a calculated table.)

vstephenmsft_0-1644826250263.png

 

2.Create a measure using SWITCH function or IF function.

Measure = 
VAR _COUNT=CALCULATE(COUNT('Table'[Local Market]),FILTER(ALLSELECTED('Table'),[Cluster]=MAX('Table (2)'[Type])))
RETURN
SWITCH(SELECTEDVALUE('Table (2)'[Type]),"Big 4",_COUNT,"EU",_COUNT,"VF Total",CALCULATE(COUNT('Table'[Local Market]),ALLSELECTED('Table')))

vstephenmsft_1-1644826728568.png

Measure 2 = 
VAR _COUNT=CALCULATE(COUNT('Table'[Local Market]),FILTER(ALLSELECTED('Table'),[Cluster]=MAX('Table (2)'[Type])))
RETURN
IF(SELECTEDVALUE('Table (2)'[Type])="VF Total",CALCULATE(COUNT('Table'[Local Market]),ALLSELECTED('Table')),_COUNT)

vstephenmsft_2-1644826795054.png

 

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.

amitchandak
Super User
Super User

@Anonymous , in the last visual from where you got the other two values (other than Big 4)

Anonymous
Not applicable

Heelo,

That is ppt, I need to create a visual like that. 

I could not bale to creat ewhile visualising in power bi

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors