Forum Discussion
Difference View in a Matrix
I have created a matrix visualization as attached in the screenshot. The first column is the Year and the following columns are different values calulated based on business formulae.
In addition to this visualization, there is also a difference view expected where the user can select 2 dates from the dropdown boxes (There is a Date column with format YYYYMM, which is part of the same table as used for calculation of different values in the matrix). Based on the selected dates the value to be shown is the difference in value till the first date minus difference in value to the second date.
Example - If drop down 1 has date selection as 201610 and dropdown 2 has date selection 201612, then in the difference view the value (let's say A) will be sum of value until 201612 minus sum of value until 201610.
I am relatively new to Power BI and have not worked much on DAX. Can someone please assist me with this? Thanks.
4 Replies
- v-piga-msftResident Rockstar
Hi Anonymous,
I'm a little confused about your scenario.
Do you want to create the dropdown boxes in matrix? If it is, I'm afraid that we cannot achieve that in power bi currently.
Do you want to create two dropdown slicers and calculate the difference of the value based on the selected date value?
If it is convenient, could you share some data sample which I can copy and your desired output so that we could help further on it?
Best Regards,
Cherry
- AnonymousNot applicable
Hi Cherry,
There would be 2 dropdown boxes for the user to select dates (CORP_DATE is the column used for both drop-downs).
Based on the selected dates the difference in figures between the two selected dates should be displayed.
For example, if the user selects 201712 (i.e. December 2017) and 201810 (i.e. October 2018) as the two dates in the , then the difference report will show the inception-to-date figures through October 2018 minus the inception-to-date figures through December 2017.
"Do you want to create two dropdown slicers and calculate the difference of the value based on the selected date value?" - Yes, this is what I want based on inception to selected date values as mentioned above.
Am I clear now?
- v-piga-msftResident Rockstar
Hi Anonymous,
Do you have two date columns or one date column?
Do you want to create the list date slicer or other date slicer with the date column?
If it is convenient, could you share some data sample which could reproduce your scenario.
Best Regards,
Cherry