Forum Discussion
Anonymous
4 years agoNot applicable
Dynamic calculation for difference between two non-date matrix columns
I have a matrix with region related fields as the column headers. A slicer for this matrix contains about 40 regional related fields available to populate the matrix columns. I have instructions on...
- 4 years ago
SVM75
2 years agoRegular Visitor
Hi Ashish,
I have a list of sale per month per product (example below, in reality, obviosuly several thousands items)
| Product | Month | Revenues |
| Product A | Jan.24 | 32.90 |
| Product B | Jan.24 | 78.61 |
| Product C | Jan.24 | 68.56 |
| Product A | Feb.24 | 90.98 |
| Product B | Feb.24 | 65.62 |
| Product C | Feb.24 | 63.92 |
| Product A | Mar.24 | 71.93 |
| Product B | Mar.24 | 56.19 |
| Product C | Mar.24 | 67.02 |
| Product A | Apr.24 | 87.79 |
| Product B | Apr.24 | 32.28 |
| Product C | Apr.24 | 99.93 |
and would like to have in PowerBI the option to select two month and have the difference dynamically be calculated, e.g.
THanks, SVM
Ashish_Mathur
2 years agoSuper User
Hi,
PBI file attached.
Hope this helps.
- SVM751 year agoRegular Visitor
Hi, maybe a stupid question, but I get an error when goes over several years (e.g. compare Feb'23 with Jun'24). What would I need to change? Thanks
- Ashish_Mathur1 year agoSuper User
Hi,
Will you always select only 2 months - whether within or across years?
- SVM751 year agoRegular Visitor
Hi, I guess there would be no way to restrict the user from selecting more than 2 dates, but I could add a comment to advise the user to select only 2 dates