Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi folks, I am trying to determine the effect a single item has on the overall totals if I excluded it from last years total and this years total and divided those figures into each other.
I have 3 tables
The first is a returns table
| Date | Return ID | Product Name |
| 01-Oct-2019 | 12358 | Apple |
| 05-Dec-2019 | 26959 | Grape |
| 28-Jan-2020 | 32659 | Banana |
| 09-Jun-2020 | 65323 | Grape |
The second is a Sales table
| Date | Product Name | Sale Qty |
| 01-Sep-2019 | Apple | 1 |
| 10-Oct-2019 | Grape | 1 |
| 10-Mar-2020 | Apple | 3 |
| 27-May-2020 | Grape | 4 |
| 06-Jul-2020 | Banana | 2 |
The last is a Calendar table
Returns measure is -
| Product Name | Total Returns | Total Sale | Return Rate | Return Rate YTD | Return Rate LY | Adjusted Return Rate YTD | Adjusted Return Rate YTD LY | Adjusted Ratio |
| Apple | X | X | X | X | X | ? | ? | ? |
| Grape | x | x | x | x | x | ? | ? | ? |
| Banana | x | x | x | x | x | ? | ? | ? |
Hi @amitchandak I was looking over your suggestion again and I played with it a bit to try get it to work but I'm still having no luck getting it to return a value
This was the only attempt of mine that didn't throw up errors but still doesn't return any values
Really hoping someone can figure this one out as, I'm sad to say, this has me beat
@DaveCor , Try like
divide(
calculate([Total Returns],datesytd('Calendar'[Date]), all(returns_table)) - calculate([Total Returns],datesytd('Calendar'[Date])),
calculate([Total Sales ],datesytd('Calendar'[Date]), all(Sales_table)) - calculate([Total Sales ],datesytd('Calendar'[Date]))
)
Hi @amitchandak , thank you, I appreciate you taking the time to look at this.
I tried your suggestion but I am getting no values when I add it to my table, just a blank column.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 7 | |
| 7 | |
| 7 |