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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ewakol
Helper II
Helper II

Cholumn chart - one chart data from two different periods and spited by measures result

Hello,

i feel that my head want to explode, will be very appreciate for help.

 

I have data for 21 warehouses, for each WH i calculated KPI1 and KPI2 as a meassure. Result could be in target, close to target, or out of target. Now i show data for 12 and 3 months in table with colours (time period is set by slicer). My boss asked, can we also show it on chart. So i need to compare on one chart data from two different periods and splited by 3 mentioned target type, dependent on rule between KPI1 and KP2:
GREEN = green + green
ORANGE = green + orange or orange + orange
RED = all the rest


Chart should look as on the right.

ewakol_0-1726244059840.png

 

Any idea how can i do that?

1 ACCEPTED SOLUTION
Selva-Salimi
Super User
Super User

Hi @ewakol 

 

first of all you should create a table (target_types) which has one column of target type and insert "in target, close to target, , out of target" in the rows and also you can have a column target_id from 1 to 3 to simply manage. then use target type in the X-axis.

 

then you can relate this table to the column that you use in your legend of the visual. and write a measue kpi1+kpi2 and show that on the visual.

 

If this post helps, then I would appreciate a thumbs up and mark it as the solution to help the other members find it more quickly. 

 

 

View solution in original post

2 REPLIES 2
elitesmitpatel
Solution Supplier
Solution Supplier

Share a dummy pbix file.

Selva-Salimi
Super User
Super User

Hi @ewakol 

 

first of all you should create a table (target_types) which has one column of target type and insert "in target, close to target, , out of target" in the rows and also you can have a column target_id from 1 to 3 to simply manage. then use target type in the X-axis.

 

then you can relate this table to the column that you use in your legend of the visual. and write a measue kpi1+kpi2 and show that on the visual.

 

If this post helps, then I would appreciate a thumbs up and mark it as the solution to help the other members find it more quickly. 

 

 

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.