Forum Discussion
Current data and quarter trends
Hi Everyone!
I have a table that I get daily feeds on. I plan to append this when uploading to power BI with my folder as a source. Example appended table below. The status of each item is updated at random dates throughout the year.
| Name | Status (String) | Status Date |
| Apple | Stage 0 | 16-Dec-21 |
| Apple | Stage 1 | 16-Feb-22 |
| Apple | Stage 2 | 28-Sep-22 |
| Apple | Stage 3 | 15-Nov-22 |
| Berry | Stage 0 | 16-Dec-21 |
| Berry | Stage 1 | 01-Jan-22 |
| Berry | Stage 2 | 25-Apr-22 |
| Cherry | Stage 0 | 16-Dec-21 |
| Cherry | Stage 1 | 29-Mar-22 |
| Cherry | Stage 2 | 30-May-22 |
| Cherry | Stage 3 | 27-Dec-22 |
What I want to do is to be able to show quarterly report. Example below:
Say, if I am report as of Q4 2022:
| Current | Q-1 | Q-2 | Q-3 | PY | |
| Name | Q4 2022 | Q3 2022 | Q2 2022 | Q1 2022 | Q4 2021 |
| Apple | Stage 3 | Stage 2 | Stage 1 | Stage 1 | Stage 0 |
| Berry | Stage 2 | Stage 2 | Stage 2 | Stage 1 | Stage 0 |
| Cherry | Stage 3 | Stage 2 | Stage 2 | Stage 1 | Stage 0 |
I am thinking of assigning quarters for each row item but that doesn't really work because I want to carry on the same data when the status of the item didn't change e.g. Q1 and Q2 and was only changed on Q3.
I want to apply the above with a timeslider as well where I can show the status of the specific time I have chosen.
Once the above is solved, my 2nd question is my quarters is not the calendar quarter. How can I tailor the quarter based on the unique range we had in the organization.
Thanks for your help!
Regards,
CV
See attached for the required plumbing. You will have to decide what a good visualization would be for this.
7 Replies
- lbendlin
Super User
Use measures to calculate the latest value for each name and date.
Specify your fiscal calendar rules.
- AnonymousNot applicable
I'm trying to count how many items are in a given stage as of date. I have this formula but it doesn't work:
M_stage1=var maxdate = CALCULATE(MAX('table'[status date]),ALLEXCEPT('table','table'[Name]))returnCalculate(DISTINCTCOUNT('table'[Name]),Filter('table','table'[Last modified]=maxdate && 'table'[Status] <> "Stage 1"))The formula above comes up as blank. I'm not sure why... can you please correct above?- lbendlin
Super User
See attached for the required plumbing. You will have to decide what a good visualization would be for this.