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! Learn more

Reply
bkxn226
Helper I
Helper I

Retrieve the difference between successive values in time intelligence

I have data that comes into time intelligence like this:

 

powerbi_example.PNG

 

 

I'm wondering if there is a quick way to take the difference between successive values.  For instance q2 would be 7.5% - 7.0%.  q1 would be 7.0% - 6.6% etc.   And then when i swtich it to monthly it does the same dynamically.

3 REPLIES 3
Anonymous
Not applicable

Hi @bkxn226 

What is your initial time hierarchy like ? What is the final display effect ? Could you provide a sample so that we can deal with the issue conveniently ?

 

Best Regards

Community Support Team _ Ailsa Tao

 

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

richbenmintz
Resident Rockstar
Resident Rockstar

Hi @bkxn226,

 

Are you able to provide a sample .pbix file, I think the members of this forum would be better able to provide a solution if we could see the measures that will have to be evaluated and how they are constructed.

 

Thanks,



I hope this helps,
Richard

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

Proud to be a Super User!


sayaliredij
Solution Sage
Solution Sage

You can try following formule

 

Sales Amount Prev Period Diff =
var IsSelectedQuarter = SELECTEDVALUE('Calendar'[QuarterOfYear])
var IsSelectedMonth = SELECTEDVALUE('Calendar'[MonthName])
var SalesAmountAll = CALCULATE([Sales Amount],REMOVEFILTERS('Calendar'))
Var QuarterPrev = DIVIDE(CALCULATE([Sales Amount],DATEADD('Calendar'[DateKey],-1,QUARTER)),SalesAmountAll)
Var MonthPrev = DIVIDE(CALCULATE([Sales Amount],DATEADD('Calendar'[DateKey],-1,MONTH)),SalesAmountAll)
RETURN
[Sales Amount PCT] - IF(ISBLANK(IsSelectedMonth),QuarterPrev,MonthPrev)
 
Thanks,
Sayali




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

Proud to be a Super User!




Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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