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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
haniizz
Helper II
Helper II

Help with Visualization of values

Hello community 

 

I have measures values as following

Poverty = 45%

Disease = 62%

unemployment = 33%

I need to visualize this in Stacked Column Chart

how can I do this , knowing these values are measures , and are not from the dataset table

1 ACCEPTED SOLUTION

hi @haniizz 

 

Step1: Create a Category table, and sort Category name by sort column(Column tools > Sort By Column).

talespin_0-1708068925693.png

 

 

Step2 :

Create this measure

 

Measure By Category =
VAR _SelCategory = SELECTEDVALUE(Categody[Sort])

RETURN IF(_SelCategory = 1, [POVERTY REDUCTION], IF(_SelCategory = 2, [DESEASE REDUCTION], [UNEMPLOYMENT REDUCTION]))
 
Step3 : In a Stacked Column chart, drop Category on X-Axis and New Measure on Y-Axis.
 
talespin_1-1708069130703.png

 

Hope this helps.

View solution in original post

13 REPLIES 13
talespin
Solution Sage
Solution Sage

hi @haniizz 

 

What is the end result that you need?

 

talespin_0-1708047728714.png

 

I need to visualise this way 

every category in a column , so in  X axsi we have three values ( poverty reduction - health reduction- unemployment reduction ) three columns , not three in one column is you have shared

hi @haniizz 

 

Can you please show visual handdrawn of what you expect.

 

talespin_0-1708062658949.png

 

Hi Talespin

I'm expecting something like what is in this picture 

Expectation.png

hi @haniizz 

 

Step1: Create a Category table, and sort Category name by sort column(Column tools > Sort By Column).

talespin_0-1708068925693.png

 

 

Step2 :

Create this measure

 

Measure By Category =
VAR _SelCategory = SELECTEDVALUE(Categody[Sort])

RETURN IF(_SelCategory = 1, [POVERTY REDUCTION], IF(_SelCategory = 2, [DESEASE REDUCTION], [UNEMPLOYMENT REDUCTION]))
 
Step3 : In a Stacked Column chart, drop Category on X-Axis and New Measure on Y-Axis.
 
talespin_1-1708069130703.png

 

Hope this helps.

I don't know how can I thank you enough
this is perfect
you deserve this title ( solution suppliers )
thank you for your patiance and providing solution

hi @haniizz 

 

You're are welcome.

Dear Talespin

I have an issue when I add more than 3 elements 
when I'm trying to add "Education" to the other three elements I get blank column althought all of the measure is correct 

hi @haniizz 

 

- You need to add "Education" to Step1 table.

- You also need to modify this measure, add "Education" to IF and call your measure for education.

 

Measure By Category =
VAR _SelCategory = SELECTEDVALUE(Categody[Sort])

 

RETURN IF(_SelCategory = 1[POVERTY REDUCTION]IF(_SelCategory = 2[DESEASE REDUCTION][UNEMPLOYMENT REDUCTION]))

thank you 
issue is solved

haniizz
Helper II
Helper II

the table ( to be visulized ) contains the 3 measures that I need to visulize it in stacked column chart

so that ( poverty reduction , desease reduction , unemployment reduction ) are in x axis ,, and their values are in y axis

the pbi file is from here

talespin
Solution Sage
Solution Sage

@haniizz 

 

Please share some sample data, data model or pbix if possible. Please remove any sensitive information, provide mock data that best explains your scenario.

thank you talespin

here is the PBIX file

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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