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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Is it possible to create this type of visual in power bi?

 Annotation 2023-06-12 191554.png

 

Hi everyone,

 

May I ask if it's possible to create this type of chart in Power bi?

 

Red = Catgory A

Dark Blue = Catgory B

Light blue = total of A and B

 

Thanks!

Kathy

2 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@Anonymous 

you can create three measures

A = SUMX(FILTER('Table','Table'[category]="A"),'Table'[VALUE])

B = SUMX(FILTER('Table','Table'[category]="B"),'Table'[VALUE])

A and B = sum('Table'[VALUE])

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

not sure if i understand this correctly.

maybe you can try this

A = SUMX(FILTER('Table','Table'[category] in {"a1","a2",a3"}),'Table'[VALUE])

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
ryan_mayu
Super User
Super User

@Anonymous 

you can create three measures

A = SUMX(FILTER('Table','Table'[category]="A"),'Table'[VALUE])

B = SUMX(FILTER('Table','Table'[category]="B"),'Table'[VALUE])

A and B = sum('Table'[VALUE])

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hi Ryan, 

Thanks for your help! Just a quick question, for the categories in the table. I have a few sub-categories ie. a1, a2, a3, b1, b2, b3. In the Field section, I created New Group and regroup a1, a2, a3 as A, b1, b2, b3 as B. Can I use the new group in 'Table' [category] = 'A'? or does it have to be a category column in the original table?

 

not sure if i understand this correctly.

maybe you can try this

A = SUMX(FILTER('Table','Table'[category] in {"a1","a2",a3"}),'Table'[VALUE])

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Thank you very much Ryan for your help! 

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Kudoed Authors