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
sw123
Helper III
Helper III

Trend from measure

Hi!

 

I would like to calculate a trend from a measure like this:

 

Trend Tons/Vehicles = calculate(sum(MaxCapacity[Tons/Vehicles]), DATESINPERIOD(DateTable[Date], LASTDATE(F_Sales_[Delivery date]), -1, YEAR))

 

But since the Tons/Vehicles is a measure, not a column, Power BI won´t let me do this. Can someone help me how to fix this?
 
Thanx in advance!
2 REPLIES 2
sw123
Helper III
Helper III

I do not have any visual yet, just trying to make the measure. Or could someone walk me through how to do this?

v-xiaotang
Community Support
Community Support

Hi @sw123 

Thanks for reaching out to us.

It is recommended that you change to a visual that supports measure as a trendline.

FYI: 15 Best Power BI Chart Types and Visual Lists - Learn | Hevo (hevodata.com)

vxiaotang_0-1671614218241.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

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.