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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
jjkmd
Helper I
Helper I

Debug help please

I have simplified my table to one value (Charge90) per month.  I have a measure that shows me the rolling 12 total.

 

Rolling individual = sumx(DATESINPERIOD(PostMonthly90[Month_Post],LASTDATE(PostMonthly90[Month_Post]),-12,MONTH),[Sum Charge90])

Then I want a measure that shows the sum of those rolling 12's for everyone who has the status of "Partner" in the Partner_Status.

To start that, I tried to make a measure that just showed the rolling 12 if someone was a partner with this....  Seemed straight forward...

only partners rolling = sumx(filter(PostMonthly90,PostMonthly90[Partner_Status]="Partner"),[Rolling individual])

THis does show a blank if someone is not a partner that month.

Annotation 2019-10-12 151052 22.jpg

 

 

however, if they are a partner, it doesn't show the measure "Rolling Individual", it just shows the sum of the current months Charge90, ie, NOT the rolling 12.   Somehow the rolling 12 gets removed?

 

Annotation 2019-10-12 151052.jpg

 

 

weird...  The measure for "only partner rolling" contains "rolling individual" but actually shows Charge90?!?

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey,

 

without data that allows to recreate the observation that you describe, it's almost impossible to provide any help for debugging the issue (at least I'm not able to provide any help).

 

As far as I can see, you are using DATESINPERIOD and LASTDATE. Both of  these DAX functions can be considered as one of the Time Intelligence (https://dax.guide/ and look for Time Intelligence, this is something different than Date and Time functions) functions. It's a good practice to use a dedicated calendar table without any missing dates, and link this table to all the other tables like:

PostMonthly90

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

2 REPLIES 2
TomMartens
Super User
Super User

Hey,

 

without data that allows to recreate the observation that you describe, it's almost impossible to provide any help for debugging the issue (at least I'm not able to provide any help).

 

As far as I can see, you are using DATESINPERIOD and LASTDATE. Both of  these DAX functions can be considered as one of the Time Intelligence (https://dax.guide/ and look for Time Intelligence, this is something different than Date and Time functions) functions. It's a good practice to use a dedicated calendar table without any missing dates, and link this table to all the other tables like:

PostMonthly90

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Thank you Tom, i'll do a different post with sample data that should hopefully help.

 

Thanks!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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