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
karthik_p25
New Member

Need DAX query

I have 3 years data in excel, we are calculating values as per quarter in excel we can take a cell which was at end of the Quarter but in DAX how to take reference cell.

 

Example : Q1 2021 value was in N63 cell in excel we can easily take as reference and we can fix the value using $ symbol then the cell reference will not change even we drag the formula.

 

as per above request how to write DAX, can anyone suggest it?

1 REPLY 1
Abhinav054
Helper I
Helper I

Hii, Once Use the following DAX function

Quarter1Value =
VAR Column1Values = VALUES('YourTableName'[Column1])
VAR Quarter1Filter = CALCULATE(Column1Values, FILTER('YourTableName'[Date], 'YourTableName'[Date] >= STARTDATE('YourTableName'[Date], QUARTER, 1) AND 'YourTableName'[Date] <= ENDDATE('YourTableName'[Date], QUARTER, 1)))
RETURN
FIRST(Quarter1Filter)

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 community update carousel

Fabric Community Update - June 2025

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