Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi and thanks for reading this.
I have a line and stacked column chart and i want to use the highest colum value to use in the line value
I want it to be in a measure and the value for the line should change to the highest value for the Item that has been marked (Lamp A or Lamp B)
Below is the rawdata table that is used here.
/Thanks
Solved! Go to Solution.
HI
I found a solution :
Measure 1:
Hi @Wresen ,
Try this:
Max1 =
CALCULATE(
SUM('Table'[Value]),
ALLEXCEPT(
'Table',
'Table'[Item]
),
ALL('Table'[Month])
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thanks so much ,but is it possible to get the highest value for the months , now it takes the total sum for all months.
So for Lamp A its will be 23 , and Lamp B 14
/Thanks
HI
I found a solution :
Measure 1:
Hi @Wresen ,
Yes, you can.
1. Add a custom column
2.Split [month] column into [Year] column and [Month] column
3. Create two measure separately
Measure_sum =
CALCULATE(
SUM('Table'[Value]),
ALLEXCEPT(
'Table',
'Table'[Item], 'Table'[Month]
)
)Measure_max =
CALCULATE(
MAXX(
'Table',
[Measure_sum]
),
ALL('Table'[Custom])
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @amitchandak
Thanks so much for the suggestion, but i dont think i works, the max value for Lamp A (in this case) should be a straigh line and the max value is in Feb and is 23 , so the line should be 23 for all months.
And i will have over 1000 items in the total file.
Try with
Max =
var _1 = sumx(filter(table,table[item]="Lamp A"),Table[value])
var _2 = sumx(filter(table,table[item]="Lamp B"),Table[value])
return
max(_1,_2)
Hi @amitchandak
i have upploaded the whole file below.
If its possible do an auto "item" i dont need to code every item since i will have over 1000 and i never know what items there will be from month to month
https://drive.google.com/open?id=1s0hrA5aGZad75sTEbX5yxPcuaKAQgqP1
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 78 | |
| 40 | |
| 31 | |
| 27 | |
| 27 |