Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
gytisv1995
Frequent Visitor

Dynamic period change percentage

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. unpivot.PNG

 

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?

 

table.PNG

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

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

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

 

aaa.PNG

 

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

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.