I hope you guys can help me in the below scenario where I have to prepare weekly report on Hired employees ideally on Monday of every week, where I have to show the below.
Hired Employees every week.
Percentage of change(Positive or negative) compared to Previous week date.
I have created the report where am getting the correct values overall but when I apply filter like country or any other filter I will get wrong previous week Percentage.
I guess this is something to do with ALL function where am not able to figure out, Any help from the team is appreciated.
That’s stretching the limits of my knowledge a bit I’m afraid!
I believe it’s because on the card there’s no row context, so it’s essentially what the total line is showing at the bottom of the table. You may need to create extra measures for the cards, that are filtered for the latest week that is visible after your filters - hopefully someone may be able to chime in with that.
@jamie.bryan is spot on. For card visuals, you need to build up the proper context for the calculation using virtual tables. This video demonstrates exactly how to do that.
Not sure am building the logic in a right manner , I have tried the same but not getting the desired result.
1 In first image you can see I should get 25 % in card based on the latest date value.
2. In second image I should get 0% based on my latest date value, Country and Department filter.
To solve your problem, I have created several measures.
First I needed to rank the dates in order to have only the last value of your From Previous Week measure. Then I’ve only kept the value of the highest date.
The second part is to calculate the total with a virtual table as Brian said earlier
Here is the table to better understand what I have done.
I seem to be the only one who is a little confused here. Let’s try to clear that up, shall we…
Q. Are you doing any time intelligence calculations? By that I mean visualizing a date attribute and/or adjusting that attribute’s context??
If the answer is yes, why is there no date table in your model?
I applaude all who ventured into this quest but incorporating a Date table seems obvious to me.
Please review the ultimate beginners guides in the learning portal.