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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
kempms
New Member

Create a measure that can be used to split a line chart (small multiples)

Good day

My predicament:

I need to create several line chart to display the performance of different gas productions.

The  scenario:

I work for a company that produces different gasses (let's call it gas 1, gas 2, gas 3). The factory is split in 2 (East and West), each producing the same gasses. I need to create a graph showing both factories actual production of each gs compared to what the projected production was. So my column names are: Gas 1 East actual, Gas 1 West actual, Gas 1 East plan, Gas 1 West Plan...

To create a graph for each set creates a dash board that is very crowded. So what I want is to have all 4 values on 1 graph for each gas type (3 graphs in all). 

What I was wondering is if it is possible to create a measure that will check the names of each variable and then split the variable according to East/West from the names. then use that measure s critiria in the small multiples box to splitt the chart for East actual + East Plan / West actual + Wets plan

 

Sample of what graph looks like now with only actual in. Adding the Plan as well makes the graph very crowded.

kempms_0-1638254812789.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@kempms , if want to use small multiple feature of the visual, then you need column, measure will not work

 

You can create a new column

 

example

Switch ( True(),

[Column] in {"Gas Plan","Gas Actual" }, "Gas",

//Add other

)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@kempms , if want to use small multiple feature of the visual, then you need column, measure will not work

 

You can create a new column

 

example

Switch ( True(),

[Column] in {"Gas Plan","Gas Actual" }, "Gas",

//Add other

)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors