Hi all,
I am wondering if this is the correct Dax syntax if I wanted to filter two tables based on specific criteria. I am trying to learn Dax. I am from an excel world and Dax is somewhat new to me.
Thank you.
Hi all,
I am wondering if this is the correct Dax syntax if I wanted to filter two tables based on specific criteria. I am trying to learn Dax. I am from an excel world and Dax is somewhat new to me.
Thank you.
Hello,
I believe the Measure should read:
Total RFP =
CALCULATE(
SUM( âPPD Merged Tblâ[RFP Amount] ),
FILTER(
âPPD Merged Tblâ,
âPPD Merged Tblâ[Positive Days] = âYesâ &&
âPPD Merged Tblâ[SFDC Campaign Names] <> BLANK()
)
Thanks rktoff but I made a mistake. I am trying to filter from two different tables. The example I gave you is from the same table.
Total RFP =
Calculate(
SUM(âPPD Merged Tblâ[RFP Amount]),
FILTER(âPPD Merged Tblâ,
âPPD Merged Tblâ[Positive Days]=âYesâ),
Filter(
âPPD Merged Campaignsâ,
âPPD Merged Campaignsâ[Campaign Name]<>blank()
)
Is the above correct? It seems to work. Is there more efficient way to write this formula.
Just curious.
Ah, yes. I see you mentioned 2 tables now.
And yes, I do believe your Measure is correct.
(You can add as many filters as you want in the CALCULATE function)
The only other âefficienciesâ you could implement would be using variables. But I donât really see a need for it in this measure.
Now when I do it. It shows blank. I have attached a working file. What am I doing wrong.
WIP - Campaign.pbix (3.1 MB)
The column âPositive Daysâ only has values of âUseâ or âDo Not Useâ
This should work for you
Thanks and it worked like a charm. I appreciate it.