Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hey Power Bi Guys!
I have my data like this:
| Month | Profit | actual/planned |
| 1 | 5000 | planned |
| 2 | 3000 | planned |
| 3 | 4000 | planned |
| 4 | 2000 | planned |
| … | … | … |
| 1 | 2000 | actual |
| 2 | 4000 | actual |
| 3 | 3000 | actual |
| 4 | 9000 | actual |
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
Solved! Go to Solution.
@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())
Create 2 measures:
Measure 1 = SUMX(FILTER('Table',[actual/planned] = "planned"),[Profit])
Measure 2 = SUMX(FILTER('Table',[actual/planned] = "actual"),[Profit])
Create 2 measures:
Measure 1 = SUMX(FILTER('Table',[actual/planned] = "planned"),[Profit])
Measure 2 = SUMX(FILTER('Table',[actual/planned] = "actual"),[Profit])
is the data in same table or two different Tables? If you Keep this in single table you can do much Easy!
Proud to be a 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())
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 126 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |