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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Parallelperiod function issue

Hi All,

i am unable to use the parallel period function because the .[Date] is not working. Please find the error image. 

 

Capture.PNG

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

When you use Date Dimension / Calendar Table you don't need to refer to a dates hierarchy (  [date].[date] ) anymore,  you just use 'CalendarTable'[Date], If you need to refer to the month, for example, then you add an extra column into you dimension representing a month and refer to this column.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

 

View solution in original post

9 REPLIES 9
amitchandak
Super User
Super User

In the case, date does not have time, you can use the date. Also how it related to that measure.  Also it better to have date calendar for time intelligence functions.

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.

Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi

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

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak   i am trying to calculte the count of users this year minus last year. 

i have cretaed a date table : = CALENDAR(MIN(DIM_PARTY_DETAILS[Date]),max(DIM_PARTY_DETAILS[Date]))

i have taken the min and max date from my exsisting tabel and created a calender table and linked the date column from both table in many to one relatioship. Still i am getting the same error.

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can use Calendar Table / Date Dimension instead of hierarchies, this should remove the error.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Anonymous
Not applicable

hi @Mariusz 

 

i did create a calender table then linked the date column from both table in many to one relationship still i am getting the same error.Capture.PNG

tex628
Community Champion
Community Champion

@Anonymous,

Could you make a table and bring both the [Date] fields in that you use in the relationship?

Like this:
image.png

Take a picture and post it!

Br,
J


Connect on LinkedIn

Hi @Anonymous 

 

When you use Date Dimension / Calendar Table you don't need to refer to a dates hierarchy (  [date].[date] ) anymore,  you just use 'CalendarTable'[Date], If you need to refer to the month, for example, then you add an extra column into you dimension representing a month and refer to this column.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

 

Anonymous
Not applicable

Previousyear, previousmonth, previousquarter and parrallelperiod all these are not working

tex628
Community Champion
Community Champion

What data type is 'DIM_PARTY_DETAILS'[Date] ?

Br,
J


Connect on LinkedIn
Anonymous
Not applicable

Capture.PNG

 

i evne created a seperate date table and marked the table as date table and used this column for calculation still throws error

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.