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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Belinskaya00
New Member

Time Intelligence Quick Measures Problem

Hello everyone! 

I am new to Power BI, but desperately trying to figure it out. 

 

I have a problem with Time Intelligence Quick Measures. 

I have a set of data, which contains dates and prices for each date. The data type of the date column is "Date" as you can see below, formatted as a european date. Important: dates are not full, the ones with no price are excluded. 

 

Belinskaya00_0-1594129973348.png

When i try to make a quick measure "month-to-date-total" using my price (which is a decimal number type) as a base value and my date as a date, i get the following error in the code: 

"Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column" 
 
I also tried to work around it and made a separate column with a month number and tried to add a Quick measure " Average per category" using the month number as category, but then it always returns the count of instances and not the price average...
 
thanks in advance! 
BR
Anastasia 

 

1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

Hi @Belinskaya00 ,

 

You will need a Calendar Table.

 

Check this link to create a Calendar Table

 

https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

 

You can then create 2 measure .

 

Total Sales = SUM(Table[Sales])

 

Sales MTD = CALCULATE( [Total Sales], DATESMTD( Dates[Date] ) )
 
Also suggest you see this video

 

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

Did I answer your question? Mark my post as a solution!

 

 

View solution in original post

2 REPLIES 2
harshnathani
Community Champion
Community Champion

Hi @Belinskaya00 ,

 

You will need a Calendar Table.

 

Check this link to create a Calendar Table

 

https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

 

You can then create 2 measure .

 

Total Sales = SUM(Table[Sales])

 

Sales MTD = CALCULATE( [Total Sales], DATESMTD( Dates[Date] ) )
 
Also suggest you see this video

 

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

Did I answer your question? Mark my post as a solution!

 

 

Hello! Thank you, i think it helped:) 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors