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
Hello Friends,
I want a conditional column in my table report like if condition or anything
I have a 3 groups like BG, CMT, Country groups (column wise)
I would like to apply TARGET_PERCENT or TARGET_PERCENT_BG to BG group and CMT group
Formula logic
Target=If (Query1[BG group] Or Query1[CMT group]) Then
If IsNull([Target Percent BG]) Or [Target Percent BG]=0 Then 80 Else [Target Percent BG]
Else
If IsNull([Target Percent]) Or [Target Percent]=0 Then 80 Else [Target Percent]
but it's not working
Can anyone give me the output based on above logic
i need a Output like below image
Sample table link
https://drive.google.com/file/d/1a70xCMB8x76TvOnURqG20HCGYdgZuKJw/view?usp=sharing
Hi @harib ,
Try this one.
Target =
VAR a =
IF (
ISBLANK ( [Target Percent BG] )
|| [Target Percent BG] = 0,
80,
[Target Percent BG]
)
VAR b =
IF (
ISBLANK ( [Target Percent] )
|| [Target Percent] = 0,
80,
[Target Percent]
)
RETURN
a + b
Hi it's giving aggreagate value like below image, it should show only 1 value either 80 (or) Target Percent BG (or) Target Percent table values.
You have not mentioned any group in the formula if i'm not wrong
Thanks for appriciate if you can provide best solution
@harib what is this condition:
If (Query1[BG] Or Query1[CMT])
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
We are migrating the reports from one platform to PowerBI. SO they have used fomula like that. Can we get output with our Dax logics instead of following their logic
My project struck here. Help me
Thanks
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 137 | |
| 102 | |
| 68 | |
| 66 | |
| 64 |