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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Guyakobov
Helper II
Helper II

Get the data of the previous time frame

HI,

 

I want to make a simple division calculation (accounts that deposited/all the accounts), but if I choose in the date range 5 days I want to see the same calcוulation in the 5 days that are before the 5 days that are in the date range. 

 

An example in the pic attach( it can be 5 days\ or 7 days\ or even 30 days - any date range that ill choose in the slicer):

http://prntscr.com/mskt0y

 

Thanks

 

2 REPLIES 2
Greg_Deckler
Super User
Super User

Tough to be specific without sample data. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

That being said, 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

HI,

 

I want to calculate accounts that have 'Full Compliance' / all the accounts.

In the picture attached http://prntscr.com/mt51yg you can see a few accounts have  'Full Compliance' ( column: 'Full Compliance') among the rest of the accounts (column: lv_accountid). 

basically, I want to calculate this but to see the results 3 time period earlier : 

 if I choose in the date range 5 days I want to see the same calcוulation in the 5 days that are before the 5 days that are in the date range. 

 

An example in the pic attach( it can be 5 days\ or 7 days\ or even 30 days - any date range that ill choose in the slicer):

http://prntscr.com/mskt0y

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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