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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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 Kudoed Authors