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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bilalkhokar73
Helper IV
Helper IV

Quarter Formula

1. I want dynamic quarter 1 thsi year last year formula,
2. I want to see growth vs degrwoth Q1_Currenteeyar vs Q1LAst year

This formual givign me wrong results , it just displaying values from 8 jan to 8 march

What is worng 

CALCULATE(SUM(Sales[Amt]),FILTER(date,date[Date]>=DATE(YEAR(TODAY()),1,DAY(TODAY()))&& date[Date]<=DATE(YEAR(TODAY()),3,DAY(TODAY()))))

1 ACCEPTED SOLUTION

no that is date , my typing error

 

CALCULATE(SUM(Sales[Amt]),FILTER(date,date[Date]>=DATE(YEAR(TODAY()),1,DAY(TODAY()))&& date[Date]<=DATE(YEAR(TODAY()),3,DAY(TODAY()))))

View solution in original post

5 REPLIES 5
bilalkhokar73
Helper IV
Helper IV

I got solution but here i face one issue when i am making growth degrwoth for quarter 3 , degrwoth shwoing high 

I need quarter 3 till date , measn quarter 3 start from  1july to 30sept 2020 and 2021, so for 1 july to till date i need quarter 2020 and quarter 2021

Q32021 = var _max = date(year(today()),9 ,30) var _min = date(year(today()),7 ,1)
return CALCULATE(sum(sales[Amt]), FILTER(ALL(DATE),DATE[date] >=_min && DATE[date] <= _max) )

Q32020 = var _max = date(year(today())-1,9 ,30) var _min = date(year(today())-1,7 ,1)
return CALCULATE(sum(sales[Amt]), FILTER(ALL(DATE),DATE[date] >=_min && DATE[date] <= _max) )


Q3 20V21% = var _grow=DIVIDE([Q32021]-[Q32020],[Q32020],BLANK())
return IF([Q32021]>[Q32020],ABS(_grow),-ABS(_grow))

Fowmy
Super User
Super User

@bilalkhokar73 

Can you provide more information as to what you are try to achieve?

In your formula, what is tm_date? you do not reference it in the filter arguments.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

no that is date , my typing error

 

CALCULATE(SUM(Sales[Amt]),FILTER(date,date[Date]>=DATE(YEAR(TODAY()),1,DAY(TODAY()))&& date[Date]<=DATE(YEAR(TODAY()),3,DAY(TODAY()))))

TomMartens
Super User
Super User

Hey @bilalkhokar73 ,

 

I have to admit that I have difficulties understanding your data model, as it seems that there are three tables involved:

  • Sales
  • tm_date
  • date

Maybe this side provides what you are looking for: Time patterns – DAX Patterns

If not, please prepare sample data, that still reflects your data model. Upload the pbix to onedrive or dropbox and share the link. If you are using sample Excel to create the sample data, share the xlsx as well.

Explain the expected result based on the sample data.

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.