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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors