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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
H_insight
Helper V
Helper V

Total sales + Relative Date + Show sales for all employees

Hi,

 

I have a relative Date filter on a page and it's filtering my table per last week's data. I am trying to show last week's data and show all employees that didn't have sales in that week too.

 

H_insight_2-1657179387479.png

 

Simple measure:

Total Sales = SUM(Sales[SalesAmount])

 

Current view:

H_insight_0-1657179319567.png

 

Expected View:

H_insight_1-1657179346296.png

 

Thanks

1 ACCEPTED SOLUTION

Hi @H_insight 

Thanks for reaching out to us.

Please try this,

vxiaotang_0-1657610111661.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@H_insight , You can use a week behind measure

 

week behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-7,DAY))

 

Also check

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8

Hi @amitchandak 

 

I have a relative date slicer to select the target week. So it's already filtering the data. What I want is to get all sales even if null/zero/blank for all employees.

Sample File

 

Thanks

Hi @H_insight 

Thanks for reaching out to us.

Please try this,

vxiaotang_0-1657610111661.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.