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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
BaldAccountant
Advocate I
Advocate I

Titles in tables which are dates that change relative to filtered date

I am trying to create a  table that has the current quarter sales, the number of customers, and then the prior 4 quarters.  I want the titles for the prior quarters to display the quarter that the info is for.  Here is a screenshot that might help explain.

BaldAccountant_0-1680783516205.png

I have 2 tables, a date table and a table with dates, sales, and names.  I have a measure for each prior quarter for example

Quarter -1 = CALCULATE(sum(Data1[Sales]),DATEADD(Date1[Date],-1,QUARTER)).
 
I Now that I think about it, I should have put the data showing 2 years worth of data vs 1 year,  But say I was filtering for 2nd quarter 2022.  I would want quarter-1 to be 1st quarter 2022, quarter -2 to be 4ht quarter 2021, and quarter-3 to be 3rd quarter 2021.
 
Thanks in advance for any help
2 REPLIES 2
amitchandak
Super User
Super User

@BaldAccountant , That is what it should give as long as Slicer / visual is using quarter from Date table?

 

What is missing ?

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Yes I am suing a slicer by quarter

I will try to send a link to the file, but my dropbox links have not worked for peope in the past

https://www.dropbox.com/s/3rc2h47omfz0eje/Test%20Quarters.pbix?dl=0

I am not 100% sure what you mean by it should work.  I can make a table to show just the values by quarter, but I want to include other columns like I did with the count of names.

I created measures to get the prior quarter values and that worked, but the titles give the name of the measure.  I want the date of the prior quarters.

 

PS thank for spending your time answering peoples questions.  I have used a lot of your solutions for other people.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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