Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I am new to Power BI, and the problem I have is that customer wants to dynamically select different periods (e.g. Year,YearMonth,YearQuarter,YearHalf or Season) and then see in each line percentage of change, compared to previous period. To allwo dynamical change of dimension I unpivoted my CalendarTable.
Now I am using Attribute column as a Slicer and Value column as a Dimension. However, in this case, Date intelligence formulas are not working for me, and I do not know how to sum previous month/year/quarter/etc. values. Is there any way to get following results with additional column for percentage change?
Hi @gytisv1995,
Now I am using Attribute column as a Slicer and Value column as a Dimension. However, in this case, Date intelligence formulas are not working for me, and I do not know how to sum previous month/year/quarter/etc. values. Is there any way to get following results with additional column for percentage change?
Do you get any errors when you write the expressions?
By my tests, the Date intelligence formula shold work with the date type. Please check the data type of the column you want to reference in expressions.
In addition, you could have a look at this article about calculating the previous values.
Reference for calculating the change percentage: calculate percentage change
If you need additional help, please share some data sample and expected output. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)
Best Regards,
Cherry
Hi,
I get no errors, but the result is not showing. Here I have two tables with different dimensions. In first table i have Value dimension. In value dimension, as mentioned in original post, there are values like 2015, 2015-01, 2015 Q1, 2014-2015 or 2015 H1. Therefore, I can't have this column as date type. I tried to include date field in my unpivoted calendar table and use the same expresion with CalendarUnpivot[UnpivotedDate] instead of Calendar[Date]. However, LastYear value is still not showing.
I can easily show previous year value, or previous month value in different tables, because I have Calendar table. The problem is how to show only one table depending on user selection in slicer. I still struggle finding the correct solution.
Best Regards,
Gytis
Hi @gytisv1995,
If it is possible, could you share a dummy pbix file which can reproduce the issue, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)
Best Regards,
Cherry
https://www.dropbox.com/s/0af0e1l8abmuf4l/TestApp.pbix?dl=0
Here is the link to the dummy pbix file. It demonstrates the problem of previous month value not showing in dynamic dimension. I hope it will be helpful
Best Regards,
Gytis
User | Count |
---|---|
102 | |
91 | |
87 | |
79 | |
71 |
User | Count |
---|---|
113 | |
105 | |
101 | |
75 | |
64 |