Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
zibster
Helper III
Helper III

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
v-lid-msft
Community Support
Community Support

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
v-lid-msft
Community Support
Community Support

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.

This was very helpful

 

Thanks 

amitchandak
Super User
Super User

 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...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors