Forum Discussion
Creating a New Measure ...
- 9 years ago
Measure = CALCULATE(SUM([Column]),FILTER(Table,[Column]="Product_Sold")) / CALCULATE(SUM([Column]),FILTER(Table,[Column]="Product_Unsold"))
Something along those lines
Measure = CALCULATE(SUM([Column]),FILTER(Table,[Column]="Product_Sold")) / CALCULATE(SUM([Column]),FILTER(Table,[Column]="Product_Unsold"))
Something along those lines
- cshowe809 years agoHelper I
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.
- v-huizhn-msft9 years agoMicrosoft Employee
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- cshowe809 years agoHelper I
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. :)