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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.