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
Hi,
Kindly assist me in creating a DAX for Power BI for the below:
I have the following data:
I need 2 new columns wherein it will show the "weight" value if there is a $ revenue or no $ revenue. Below is the output:
Please note I am using Direct Query as storage mode.
Appreciate your kind assistance. Thanks.
Best regards,
Mark V.
Solved! Go to Solution.
@markefrody , Try new column like
col1 = if([revenue] =0, [weight], 0)
col2 = if([revenue] <>0, [weight], 0)
@markefrody , Try new column like
col1 = if([revenue] =0, [weight], 0)
col2 = if([revenue] <>0, [weight], 0)
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 |
|---|---|
| 56 | |
| 42 | |
| 41 | |
| 20 | |
| 19 |