- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Dynamic Dax for Previous
Hi
I am trying to return previous year quarter value however only for one area dax is showing 0
I wanted to modify my dax for Promote Previous measure Promote current is the first measure
Promote Current is finding the maximum value across the quarter
For Instance : For 2028/q1 promote previous value should show 16538747.92 not 0
I am attaching expected out put
This is the dax which i used to create previous value
Any help will be much appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Power_Guy
If "Tax Distribution/Promote" is a column then you need to remove the filter from this column by wrapping it with ALL and include it as one of the CALCULATE arguments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
This pattern should work
Measure = calculate([promote current],previousquarter(calendar[date]))
Ensure that you drag quarter to the table visual from the Calendar table. If this does not help, then share the download link of the PBi file and the problem there very clearly.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Power_Guy
If "Tax Distribution/Promote" is a column then you need to remove the filter from this column by wrapping it with ALL and include it as one of the CALCULATE arguments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Power_Guy - Your current DAX formula does not explicitly filter for the previous quarter within the same category. Instead, it looks at the entire date table and finds the max value before the current period
please find the revised measure as below:
Promote Previous =
VAR CurrentQuarter = MAX('Date'[Period])
VAR PreviousQuarter =
CALCULATE(
MAX('Date'[Period]),
FILTER(
ALL('Date'),
'Date'[Period] < CurrentQuarter
)
)
RETURN
CALCULATE(
MAX('Promote'[Promote (Advances)]),
FILTER(
ALL('Date'),
'Date'[Period] = PreviousQuarter
)
)
check it , hope it works.
Proud to be a Super User! | |

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
10-22-2024 11:46 PM | |||
08-19-2024 08:47 AM | |||
12-11-2024 10:23 PM | |||
09-03-2024 02:55 AM | |||
05-02-2024 02:58 PM |