Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
In powerpivot, I have a table have a flag by group only when the status is complete. There is only one flag per group currently. I want to back fill the flag for the whole group for each status. Below is a small example of the table that I have and the table that I want. How would i write this with dax?
here is the table that I have:
Group Status Flag
A Pending
A Pending
A Complete Y
B Started
B Pending
B Complete B
C Pending
C Complete
D Complete Y
E Pending
F Complete
G Started
G Complete B
here is the table I want
Group Status Flag
A Pending Y
A Pending Y
A Complete Y
B Started B
B Pending B
B Complete B
C Pending
C Complete
D Complete B
E Pending
F Complete
G Started B
G Complete B
Solved! Go to Solution.
HI @sroy
Try adding this calculated column
New Column = CALCULATE ( FIRSTNONBLANK ( Table1[Flag], 1 ), FILTER ( ALLEXCEPT ( Table1, Table1[Group] ), Table1[Status] = "Complete" ) )
HI @sroy
Try adding this calculated column
New Column = CALCULATE ( FIRSTNONBLANK ( Table1[Flag], 1 ), FILTER ( ALLEXCEPT ( Table1, Table1[Group] ), Table1[Status] = "Complete" ) )
Hi @Zubair_Muhammad This works! What if the label wasnt always in the complete row?
In that case, simply
New Column = CALCULATE ( FIRSTNONBLANK ( Table1[Flag], 1 ), ALLEXCEPT ( Table1, Table1[Group] ) )
Thank you!!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
42 | |
30 | |
27 | |
27 |