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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors