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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
alihijazi
Helper I
Helper I

current and YTD sales data

Hello

I'm new to Power BI desktop

I'm using the data from the Retail Analysis Sample

I created 2 charts one that shows the sales by month using the following DAX expression

Sales = SUM(Sales[Sum_Regular_Sales_Dollars])

and another chart that shows the YTD sales by month using the following expression

YTD Sales = CALCULATE(SUM(Sales[Sum_Regular_Sales_Dollars]), DATESYTD('Time'[Month]))

 

However I get the same results 

 

Untitled.png

1 REPLY 1
Ben83
Regular Visitor

Do you use a separate date table? Try to use the date field not the month field.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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