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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Column and line chart - filter every one seperately

Hey Power Bi Guys!

I have my data like this:

 

MonthProfitactual/planned
15000planned
23000planned
34000planned
42000planned
12000actual
24000actual
33000actual
49000actual

 

no I want to make a column and line chart (x-axis is month, y axis profit) and the colums show the actual values while the line shows the planned value.

is there a way to do this easily? If I set a filter on "actual", it affects the whole visual, can I just filter the line/columns?

Thanks guys!  🙂

 

Cheers,

 

Janik

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , Did not get completely

But this should work as measure

planned=calculate(sum(table[profit]), table[actual/planned]="planned")
actual=calculate(sum(table[profit]), table[actual/planned]="actual")

 

and these a new columns

planned=if( table[actual/planned]="planned",table[profit], blank())
actual= if( table[actual/planned]="actual",table[profit], blank())

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

Greg_Deckler
Community Champion
Community Champion

Create 2 measures:

 

Measure 1 = SUMX(FILTER('Table',[actual/planned] = "planned"),[Profit])

Measure 2 = SUMX(FILTER('Table',[actual/planned] = "actual"),[Profit])



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

Create 2 measures:

 

Measure 1 = SUMX(FILTER('Table',[actual/planned] = "planned"),[Profit])

Measure 2 = SUMX(FILTER('Table',[actual/planned] = "actual"),[Profit])



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
VijayP
Super User
Super User

is the data in same table or two different Tables? If you Keep this in single table you can do much Easy!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

@VijayPit's in a single table.

Much easy? Tell me more 🙂

amitchandak
Super User
Super User

@Anonymous , Did not get completely

But this should work as measure

planned=calculate(sum(table[profit]), table[actual/planned]="planned")
actual=calculate(sum(table[profit]), table[actual/planned]="actual")

 

and these a new columns

planned=if( table[actual/planned]="planned",table[profit], blank())
actual= if( table[actual/planned]="actual",table[profit], blank())

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.