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! Learn more
Hello,
I am using the following formula to get the following result.
However, I need this logic:
If the value of "name" at index 2 is different from the value of "name"at index 1, then change color of "name" at index 2,
If the value of "name" at index 3 is different from the value of "name"at index 2, then change color of "name" at index 3,
If the value of "name" at index 4 is different from the value of "name"at index 3, then change color of "name" at index 4.
So if "def" is different from "abc" above it, highlight it. But don't highlight the "def" that come after it since they are not different from the value above them. I hope that makes sense.
Pls help me modify/simplify the formula to achieve that.
Solved! Go to Solution.
@Anonymous
Measure =
SUMX(
Data,
(COUNTROWS(
FILTER(
ALL(Data),
Data[Name]=EARLIER(Data[Name])&&
Data[Sno]<=MAX(Data[Sno])
)
)=1
)*1
)Now use conditional formatting to highlight the font based on the measure.
Here is how the result looks like
I am hoping this is what you are expecting. You can download the Power BI file here
thanks
@Anonymous
Measure =
SUMX(
Data,
(COUNTROWS(
FILTER(
ALL(Data),
Data[Name]=EARLIER(Data[Name])&&
Data[Sno]<=MAX(Data[Sno])
)
)=1
)*1
)Now use conditional formatting to highlight the font based on the measure.
Here is how the result looks like
I am hoping this is what you are expecting. You can download the Power BI file here
thanks
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.
| User | Count |
|---|---|
| 82 | |
| 48 | |
| 36 | |
| 31 | |
| 29 |