Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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).
Solved! Go to Solution.
@pawelj795 , Check if this can help
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@AllisonKennedy
Another problem is that both dates (Start & End) must be inactive relationships.
What else do you need for helping me?
@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
Thanks for your solutions, but they are quite different than my case.
Below my sample data.
https://drive.google.com/file/d/1TZdTBmvU2J72w15ULnQTlLqeJQjr4vz5/view?usp=sharing
As you can see on my file, when I filter data on my page, the declared turnover don't change, and I want to divide it according to days spent. (for example, if I choose Q2, it should be shown only declared turnover * 180/360)
@pawelj795 , Check if this can help
@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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |