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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
req77
Helper I
Helper I

Chart with goal line with different measures

Hi,

I have two tables that have this structure:
Feedback Table

Year      Month    Person     Sector   Year-Month-Status    
2022    1JackB2022-1-Z
20221EllenA2022-1-T
20222DavidD2022-2-Z
20223AliceC2022-3-A
...............


Objectives Table

Year     Month     Sector   Goal    Year-Month-Status  
20221A152022-1-A
20221B112022-1-B
20221C172022-1-C
20221D202022-1-D
20222A242022-2-A
20222B332022-2-B
20222C452022-2-C
20222D362022-2-D
...............


I want to create a chart that shows the COUNT of feedbacks for each Sector in each month of the year, with the objective line adapting to the objective of each month and sector of the Objectives table.
I would also like that if the Sector objective for the month was reached, the bar would turn green, if not, the bar would turn red.

I created a column that concatenates Year, Month and Sector in the two tables (Year-Month-Status column), to be able to generate a kind of ID and related the two tables by that ID, but I don't know what else to do. I've already created the chart that shows the count of feedbacks per Sector and per month, but when I enter the Objective value for the goal line (from the Objective table), the line appears straight, indicating "objective count", as in the image below:
inn1.PNG

When actually I wanted my chart to look something like this:
inn2.PNG

Can someone help me?

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @req77 ,

 

The line and clustered column chart does not support adding a conditional judgment condition based on column. You can try to use table visual, create measure, and use format->conditional formatting function, refer to the following.

Measure 2 = IF(MAX('Table'[Goal   ])>=25,"green","red")

vhenrykmstf_1-1649125493571.png

In addition you can create measures as trend lines (e.g. averages) to be placed in the visual counterpart.

Measure = AVERAGE('Table'[Goal   ])

vhenrykmstf_2-1649125728631.png

 


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @req77 ,

 

The line and clustered column chart does not support adding a conditional judgment condition based on column. You can try to use table visual, create measure, and use format->conditional formatting function, refer to the following.

Measure 2 = IF(MAX('Table'[Goal   ])>=25,"green","red")

vhenrykmstf_1-1649125493571.png

In addition you can create measures as trend lines (e.g. averages) to be placed in the visual counterpart.

Measure = AVERAGE('Table'[Goal   ])

vhenrykmstf_2-1649125728631.png

 


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

req77
Helper I
Helper I

No one? 😞 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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