Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Certainly! In DAX (Data Analysis Expressions), you can achieve the equivalent calculation using the following formula:
PEAK PAX = IF(AND(EA[TIME] > EARLIER(EA[TIME]), EA[TIME] >= NEXTDAY(EA[TIME])), EA[PAX])
Here, I assume that your table is named "EA" and has columns "TIME," "PAX," and "PEAK PAX." The EARLIER function is used to refer to the previous row in the table, and NEXTDAY is used to get the next row. The condition checks if the current row's time is greater than the previous row's time and greater than or equal to the next row's time. If this condition is met, it returns the value of "PAX," otherwise, it returns blank.
Please adjust the table and column names in the formula based on your actual data model.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.
Hi @Anonymous ,
try like:
Column =
VAR _p = [pax]
VAR _pre =
MAXX(
TOPN(
1,
FILTER(
data,
data[time]< EARLIER(data[time])
),
data[time]
),
data[pax]
)
VAR _next =
MAXX(
TOPN(
1,
FILTER(
data,
data[time]> EARLIER(data[time])
),
data[time]
),
data[pax]
)
VAR _result = IF(_p>_pre && _p>=_next, _p)
RETURN _result
it worked like:
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 7 | |
| 7 | |
| 6 |