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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello gents,
I have a table, which contains few columns, which I use to drill through visualizations.
I want to create a new calculated column, which will be looking into "A1" and "Status".
Can you help me to write DAX expression for new column?
Calculated logic as follows:
| A1 | Status | Expected result |
| 1 | Good | Not Good |
| 1 | Not Good | Not Good |
| 1 | Good | Not Good |
| 2 | Good | Good |
| 2 | Good | Good |
| 3 | Not Good | Not Good |
| 3 | Good | Not Good |
| 4 | Not Good | Not Good |
Flag =
IF(
ISEMPTY(
FILTER( INFO, INFO[A1] = EARLIER( INFO[A1] ) && INFO[Status] <> "Good" )
),
"Good",
"Not Good"
)
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Hi,
NewColumn =
REPT (
"Not ",
CALCULATE (
COUNTROWS ( 'Table' ),
'Table'[Status] = "Not Good",
'Table'[A1] = EARLIER ( 'Table'[A1] )
) > 0
) & "Good"
Regards
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |