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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
OmriKepes
Regular Visitor

WTD values not displaying correctly

Hi

 

I'm trying to put together a sales dashboard with WTD, MTD, and YTD figures, each displayed on a new tab. These would be split into each region ("outlet"), and by product type. Below is what I've currently got as my WTD table.

 

OmriKepes_0-1674523644378.png

 

One of the issues I'm having is while the total figure at the bottom of the screen are correct, it's displaying figures that dont add up in the cells above/acrossfrom the totals? I've clipped the measure I'm using.

 

Sales WTD =
Var CurrentDate = MAX('Sales Data - 2021/2022'[Date Created])
Var CurrentWeek = MAX('Sales Data - 2021/2022'[Week])
Return
CALCULATE([Total Sales],
'Sales Data - 2021/2022'[Date Created]<=CurrentDate,
'Sales Data - 2021/2022'[Week]=CurrentWeek)

 

OmriKepes_2-1674524093652.png

 

Then there are two more measures I have made that are below.

 

Total Sales = SUM('Sales Data - 2021/2022'[Sale Price Ext])
Week = 'Sales Data - 2021/2022'[Year]+(WEEKNUM('Sales Data - 2021/2022'[Date Created],2)/100)

 

If anyone has any suggestions and/or alternative ways to do this, that'd be great!!

 

Thanks

0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.