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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
JoanG
Regular Visitor

Dynamic Line and Column Chart

Hi There,

 

I want to use a slicer to choose Total Production (EA), or Energy Usage (MJ), or Total Production (KG).

When I choose either one, x-axis is month and y-axis to the value. Please note the month also contained FY and YTD, both are needed to be shown in the same chart, put after Dec, but don't connect the data point with another month (Jan-Dec) for the line chart. Bar chart is for the Target and line chart is for the Actual.

I have created the raw data in the link. The data is not real.

 

https://docs.google.com/spreadsheets/d/1Vb_3HyEbx_IwaCplZQ2Gs3-KXMBBAkt_/edit?usp=sharing&ouid=10607...

 

Thanks in advance for the help.

 

Regards,

Joan

3 REPLIES 3
HotChilli
Community Champion
Community Champion

I think you could Unpivot the numeric columns in Power Query.

Write a couple of measures : One to sum the values for Target, one to sum the values for Actual.

Use those in the relevant y-axis field wells.

--

The month would go on the x-axis and the sorting would probably be the most challenging task.  I would probably create a dimension table for month (including YTD and FY) with an additional sort order column, then use 'Sort by Column' feature. Create a relationship to Fact table.

Deepak_
Advocate I
Advocate I

Hi @JoanG ,

Can you please share what do you want to see in the report ?


Thank you.

hi @Deepak_ ,

 

Please see the illustration from below link:

https://docs.google.com/presentation/d/12eYN5lOc7L6_N_XSyGp-4L6uk_1QYCeJ/edit?usp=sharing&ouid=10607...

 

Thanks!

 

Regards,

Joan

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.