cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pawelj795
Post Partisan
Post Partisan

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.

 

CustomerStart DateEnd DateDeclared Turnover for periodActual Turnover for period *Realization (%)
A01.01.202031.12.2020500 000100 000?
B01.01.202031.12.2020300 000200 000?
C01.01.202031.12.2020400 000500 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).

 

image.png

1 ACCEPTED SOLUTION

@pawelj795 , Check if this can help

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

6 REPLIES 6
AllisonKennedy
Super User III
Super User III

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.


?? Check out my March Madness Report??


Has this post solved your problem? Please mark it as a 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. ?


I work as a trainer and consultant for Microsoft 365, 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.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

@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

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

amitchandak
Super User IV
Super User IV

@pawelj795 , You can join both of them, with date table (one active and one inactive join) and use the join as per need

refer

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

 

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.