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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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

Top Solution Authors
Top Kudoed Authors