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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
cshowe80
Helper I
Helper I

Creating a New Measure ...

I've got a report I'm producing to show year over year values and I've just about completed it. Now I've been given one request thats thrown me for a loop. I've got a number of "products" and in those there are 4 sales channels: Direct Sale, Affiliate, Auction, Marketing. All but direct sales are considered "unsold" as we're tracking sales team effectivness. 

 

I've combined the two relevent columns in excel as a new column using =E1& "_"&M1 which outputs as Product_Sold or Product_Unsold. Now the goal is to sum up and then divide the Product_Sold by Product_Unsold to get a "sell through rate" meassurment for each of the individual products. 

 

If this were excel I would use a simple SUMIF function and then divide them. I'm not able to do this as easily in PowerBI. Is anybody able to help with this? Is there a better method within the Excel sheet I can use? Is there an easy fix using a "new meassure" in PowerBI?

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Measure = CALCULATE(SUM([Column]),FILTER(Table,[Column]="Product_Sold")) / CALCULATE(SUM([Column]),FILTER(Table,[Column]="Product_Unsold"))

Something along those lines



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

Measure = CALCULATE(SUM([Column]),FILTER(Table,[Column]="Product_Sold")) / CALCULATE(SUM([Column]),FILTER(Table,[Column]="Product_Unsold"))

Something along those lines



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks for the reply but I'm either dense or something else is up here. Below is what I input into the new measure and it isn't working. 

 

Sell Through = CALCULATE(SUM([Total impressions]),FILTER(YOY,[Impression Groups]="Sold")) / CALCULATE(SUM([Total impressions]),FILTER(YOY,[Impression Groups]="Unsold"))

 

So I'm trying to take all Impressions which have a "Sold" designation and dividing them by all impressions which have a "unsold" designation. The Slicer will then output the value of that sites as a % sell through figure. 

 

Am I dense here? Missing something simple? This gave me a 1. I also can't figure out how to make this display in % format under modeling it's greyed out. 

 

Hi @cshowe80,

If there is "Sold" and "unsold" in your "Impression Groups" column, there are Direct Sale, Affiliate, Auction, Marketing on the column based on my understading. If my understanding is right, you should use the following formula.

Sell Through = DIVIDE(CALCULATE(SUM([Total impressions]),FILTER(YOY,[Impression Groups]="Direct Sale")) , CALCULATE(SUM([Total impressions]),FILTER(YOY,[Impression Groups]<>"Direct Sale")))


Then select the measure, set it's type as percentage by Data Type under Modeling.

Please feel free to ask if you have other issue.

Best Regards,
Angelia

Sorry I may have made this confusing and I think what you're saying makes perfect sense. This was a P.E.B.K.A.C error on my part that was where I was running into troubles.

 

I was successful using a modified version of the provided string

 

Sell Through = CALCULATE(SUM([Total impressions]),FILTER(YOY,[Impression Groups]="Sold")) / CALCULATE(SUM([Total impressions]))

 

Thank you for all your assistance I've finally gotten this working. 🙂

 

Hi @cshowe80,

Glad to hear that your issue got solved. Please mark corresponding reply as answer, which will help other people find the workaround easily.

Best Regards,
Angelia

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors
Top Kudoed Authors