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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
pmendoza
Frequent Visitor

Month to date

I am using TOTALMTD  function to get Month To date sum of sales in a Sales Table, which is related to my Dates Table via Date _Key.

MTD = TOTALMTD(SUM(SALES_Q_KRAMER[Amount_$]),Date_TBL[Date_KEY])

The problem I am having is that when I create a slicer to give me options for 2015 or 2016, I get blank results for current year, 2016, 

when I select 2015, data comes up.

There is data in 2016 in the sales table.

Clearly new to BI, and need some help.

Thanks

1 REPLY 1
fbrossard
Advocate V
Advocate V

Hi,

 

Which designer do you use (Excel or PowerBI Desktop) ? 

Which data type do you use for your Date_Key ?

If you use Excel, make sure you have marked your Dim_Date as "Date table".

If you use PBI Desktop, make sure that you join your fact tables to your Dim_Date by using a date or a datetime column, because in PBI Dektop you cannot mark a table as date.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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