Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
My formula in excel is : =IF(COUNTIFS($N$1:N2;N2)=1;SUMIFS(U:U;Q:Q;"<="&Q2;N:N;N2);"")
how to write in PBI ?
Thank you.
who can help me?
Thanks for the formula, but everywhere I get an empty result 😕
In Power BI, you can create a measure using the DAX language that has similar functionality to the Excel formula you provided. Here's an example of how to write the measure in Power BI:
Measure =
IF(
COUNTROWS(
FILTER(
Table,
Table[N] = MAX(Table[N])
)
) = 1,
CALCULATE(
SUM(Table[U]),
FILTER(
Table,
Table[Q] <= MAX(Table[Q]) && Table[N] = MAX(Table[N])
)
),
BLANK()
)
You'll need to replace "Table" with the name of the table you're working with in Power BI. This measure will return the same results as the Excel formula you provided, but calculated within Power BI.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.