Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
How can I use IF statement in this case or it should be different solution?
I neet to run this formula only if Campaign {"date"} = CRM {"date"} then Column =....
Column = VAR __tmpTable = ADDCOLUMNS(ALL(crm),"Found",FIND([id],[camp_tracker],,-1)) RETURN COUNTROWS(FILTER(__tmpTable,[Found]<>-1))
Solved! Go to Solution.
Hi @dosinkevic,
Maybe you can try this formula.
Column =
VAR __tmpTable =
ADDCOLUMNS ( ALL ( crm ), "Found", FIND ( [id], [camp_tracker],, -1 ) )
VAR campaign_date = [date]
RETURN
COUNTROWS ( FILTER ( __tmpTable, [Found] <> -1 && [date] = campaign_date ) )
Best Regards,
Dale
Hi @dosinkevic,
Maybe you can try this formula.
Column =
VAR __tmpTable =
ADDCOLUMNS ( ALL ( crm ), "Found", FIND ( [id], [camp_tracker],, -1 ) )
VAR campaign_date = [date]
RETURN
COUNTROWS ( FILTER ( __tmpTable, [Found] <> -1 && [date] = campaign_date ) )
Best Regards,
Dale
Dale,
It works, thank you for help!
@dosinkevic Use the Conditional column feature in editqueries so that you can keep your condition there.
In my case I have two queries Campaign and CRM. I can't select both in Conditional column, plus I can't add my formula in Output.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 34 | |
| 33 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 61 | |
| 60 | |
| 39 | |
| 26 | |
| 24 |