Forum Discussion
Verifying customers declaration - turnover
Hi,
I'm currently working on creating a report page that will show the realization of customers declaration about turnover.
If they carry out a promise, they will get a proper discount.
| Customer | Start Date | End Date | Declared Turnover for period | Actual Turnover for period * | Realization (%) |
| A | 01.01.2020 | 31.12.2020 | 500 000 | 100 000 | ? |
| B | 01.01.2020 | 31.12.2020 | 300 000 | 200 000 | ? |
| C | 01.01.2020 | 31.12.2020 | 400 000 | 500 000 | ? |
*Actual Turnover are calculating correctly from the FACT table
The above table was created manually in Excel (only actual turnover was added in Power BI).
My problem is that I don't know how to connect Start & End Date to Date Table, that if I put a slicer on my report page and filter for example Q1 2020, the Declared Turnover will be adequately divided (in this case divided by 4).
pawelj795 , Check if this can help
6 Replies
- AllisonKennedy
Community Champion
I need a bit more info, but if I understand your problem correctly, then add a Measure for Period Duration which calculates the DATEDIFF between the max value of End Date or Date Selected and min value Start Date or Date Selected. Divide the Declared Turnover for Period by that measure.- pawelj795
Post Prodigy
AllisonKennedy
Another problem is that both dates (Start & End) must be inactive relationships.
What else do you need for helping me?- amitchandak
Super User
pawelj795 , see my update above helps.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- amitchandak
Super User
pawelj795 , You can join both of them, with date table (one active and one inactive join) and use the join as per need
refer
Another way - Allocate target and work -https://www.dropbox.com/s/fnq82ksdzk1lqs3/Target_allocation_daily.pbix?dl=0
Do not allocate and work -https://youtu.be/yPQ9UV37LOU