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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

help on value using var / return

I have 2 measures called
1) Sale3mths
2) estimatesale
These 2 measures will change according to the filter applied

is it possible to use var to calculate the % change
estimatesale - Sale3mths * 100 / Sale3mths

 

Any advice is helpful. Thank you 🙂

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Generally, you need to convert measure to calculate column using dax you have input:

Percentage =
estimatesale - Sale3mths * 100 / Sale3mths

Community Support Team _ Jimmy Tao

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

Anonymous
Not applicable

@v-yuta-msft 
as my 2 measure "estimatesale" & "Sale3mths" changes if a user change the filtering, so it alway return me a blank value or wrong value.

however if the "estimatesale" & "Sale3mths" are used separately on it own, the value are correct, but when used in formula

below, the value are wrong

Percentage =
estimatesale - Sale3mths * 100 / Sale3mths

I dont have the file to share as it contain some confidential info, so just wondering if anyone has encounter it before?

Thank so much.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.