cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
zibster Regular Visitor
Regular Visitor

Calculating daily Sales

Hi,

I am trying to calculate daily projection from the total weekly amount, the %ByDayForTheWeek is a calculated value. Below is an example of how I would do this in excel. Please help

 

Cap.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Calculating daily Sales

Hi @zibster ,

 

We can try to create a calculated column in “Split By Day Table” Table using following dax to meet your requirement:

 

Ounput =
[%ByDayForTheWeek]
    * CALCULATE (
        SUM ( 'Sales Table'[SalesProj] ),
        FILTER (
            'Sales Table',
            'Sales Table'[Facility] = EARLIER ( 'Split By Day Table'[Facility] )
                && 'Sales Table'[Department] = EARLIER ( 'Split By Day Table'[Department] )
                && 'Sales Table'[WeekID] = EARLIER ( 'Split By Day Table'[WeekID] )
        )
    )

 

If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Super User IV
Super User IV

Re: Calculating daily Sales

 If possible please share the Excel and sample pbix file after removing sensitive information.Thanks.

My Recent Blog -

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





Did I answer your question? Mark my post as a solution!
In case it does not help, please provide additional information and mark me with @
My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP,
HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Super User! Linkedin


Community Support Team
Community Support Team

Re: Calculating daily Sales

Hi @zibster ,

 

We can try to create a calculated column in “Split By Day Table” Table using following dax to meet your requirement:

 

Ounput =
[%ByDayForTheWeek]
    * CALCULATE (
        SUM ( 'Sales Table'[SalesProj] ),
        FILTER (
            'Sales Table',
            'Sales Table'[Facility] = EARLIER ( 'Split By Day Table'[Facility] )
                && 'Sales Table'[Department] = EARLIER ( 'Split By Day Table'[Department] )
                && 'Sales Table'[WeekID] = EARLIER ( 'Split By Day Table'[WeekID] )
        )
    )

 

If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

zibster Regular Visitor
Regular Visitor

Re: Calculating daily Sales

This was very helpful

 

Thanks 

Helpful resources

Announcements
Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors