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
Anonymous
Not applicable

PARALLELPERIOD function when there's period missing

I'm using Parallelperiod to get previous value and it's working correctly for most except those that don't have value existed for certain period. For example if Company A has sales both in March and April, it will work fine. But if company A only has sales in March and the filter is set for April, March sales will show as blank.

 

My guess is that the function couldn't find April, so it doesn't know what's the previous period to look for.

 

Is there any suggestion for my struggle?

 

CALCULATE(SUM('Details'[accrual]),PARALLELPERIOD('Details'[Report date],-1,MONTH))
1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

It is needed to create a Calendar table, and then create relationships between 'Details' table and 'Calendar' table.

Calendar = CALENDAR ( MIN ( Details[Report date] ), MAX ( Details[Report date] ) )

 

relation.jpg

 

Then, create your measure like so:

Measure 2 =
CALCULATE (
    SUM ( 'Details'[accrual] ),
    PARALLELPERIOD ( 'Calendar'[Date], -1, MONTH )
)

measure.PNG

 

BTW, .pbix file attached.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

 

It is needed to create a Calendar table, and then create relationships between 'Details' table and 'Calendar' table.

Calendar = CALENDAR ( MIN ( Details[Report date] ), MAX ( Details[Report date] ) )

 

relation.jpg

 

Then, create your measure like so:

Measure 2 =
CALCULATE (
    SUM ( 'Details'[accrual] ),
    PARALLELPERIOD ( 'Calendar'[Date], -1, MONTH )
)

measure.PNG

 

BTW, .pbix file attached.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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 Solution Authors