Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi All,
Could anyone please help me with below query on power bi, the query im using on tableau
IF NOT ISNULL([task id]) THEN (CASE [activity] WHEN 'Yes' THEN 1 ELSE 0 END) ELSE 0 END
Thanks for help 🙂
Solved! Go to Solution.
Hey @dbehara ,
sorry, that was my mistake. You have to use the double quotes.
Try this one:
New column =
SWITCH(
TRUE(),
myTable[task id] = BLANK(), 0,
myTable[activity] = "Yes", 1,
0
)
Hey @dbehara ,
what exactly do you want to do? Is that a SQL query? Is that a new calculated column? Should that be a measure?
I think a little bit more context is required to help you.
Best regards
Denis
@selimovd Im using above query on tableau and trying to re-create same on power bi
basically [task id] should not be null, while calculating activity as 'Yes'
Hope i have answered 🙂
Hey @dbehara ,
Power BI is not Tableau, what is the reason I asked where exactly you need that.
In this case I can just guess. An approach for a calculated column would be:
New column =
SWITCH(
TRUE(),
myTable[task id] = BLANK(), 0,
myTable[activity] = 'Yes', 1,
0
)
@selimovd i got the columns now
But 'Yes' getting error (failed to resolve name 'Yes'. it is not a valid table,variable or function name.
Hey @dbehara ,
sorry, that was my mistake. You have to use the double quotes.
Try this one:
New column =
SWITCH(
TRUE(),
myTable[task id] = BLANK(), 0,
myTable[activity] = "Yes", 1,
0
)
We have around 20M leads in the table and facing the issue while pulling the datafrom salesforce(source system) and then applying the above logic.
Earlier the dataflow job was executed in 2hours to fetch the data but after applying the above loic the job is running more than 5hours(timed out error).
Any suggestions to improve the performance here.
Below is the complete steps which we have applied the the table.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |