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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have created a flag using DAX like Flag= IF(Discount >0,"Y","N") it works fine but at the bottom of the report it gives the Total.
Discount Flag
2 Y
1 Y
0 N
--------------
Total Y
I want to hide Y at the bottom by not using the Field Formatting ( selecting font color white and apply to Total)
Thanks
Bishwa
@BishwaR , Based on group by of your visual
IF(isinscope(Table[Group]) && Discount >0,"Y","N")
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
or
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
Thanks a lot for your feedback. For some reason isinscope did not work for me so I replaced it with HASONEVALUE and it work fine.
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 |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 31 | |
| 20 | |
| 13 | |
| 10 |