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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Combine different measures in one measure

Hi.
I want to find a way to get different measures with the same purpose into one measure. Many measures creates such a mess in the field overview!

I.E I want to create a measure that can show the change in Sold quantity (in %)
How I do it now:

1. Sales Quantity Measure = SUM('Valueposts'[Sales Quantity])


2. Sales Quantity LY = CALCULATE(SUM('Valueposts'[Sales Quantity]), DATEADD('Date'[Date], -1, YEAR))


3. Sales Quantity Change vs last year = [Sales Quantity Measure] - [Sales Quantity LY]

4. 
% change Sales Qty vs Sales Qty Last year = [Sales Quantity Change vs last year]/[Sales Quantity Measure]

Anybody know how I create these steps into one measure?
Appriciate any help!

1 ACCEPTED SOLUTION
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

Use the below measure:
% change Sales Qty vs Sales Qty Last year=
Var SalesQuantityMeasure = SUM('Valueposts'[Sales Quantity])

Var SalesQuantityLY = CALCULATE(SUM('Valueposts'[Sales Quantity]), DATEADD('Date'[Date], -1, YEAR))

Var SalesQuantityChangevslast year = [SalesQuantityMeasure] - [SalesQuantityLY]

Return  [SalesQuantityChangevslast year]/[SalesQuantityMeasure]

 

 

mark this as a solution if I answered your question.

Thanks

View solution in original post

1 REPLY 1
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

Use the below measure:
% change Sales Qty vs Sales Qty Last year=
Var SalesQuantityMeasure = SUM('Valueposts'[Sales Quantity])

Var SalesQuantityLY = CALCULATE(SUM('Valueposts'[Sales Quantity]), DATEADD('Date'[Date], -1, YEAR))

Var SalesQuantityChangevslast year = [SalesQuantityMeasure] - [SalesQuantityLY]

Return  [SalesQuantityChangevslast year]/[SalesQuantityMeasure]

 

 

mark this as a solution if I answered your question.

Thanks

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.