Forum Discussion

k3rz0rg's avatar
k3rz0rg
Icon for Advocate III rankAdvocate III
3 years ago

Need help translating Tableau Include and Fixed LOD to DAX!

Hi everyone, 

 

I've been trying to convert the following codes to DAX following some replies on the community but was unable to get the correct output, perhaps, some of you can help me out with these! 
{Include [CID], [RDate] : Sum(if [Cat Flag] = 1 Then [Sales] END)}

 

and the second one is ↓

{Fixed [CID] : COUNTD([RDate])}

I tried summarized approach but that was a mess for me, then I found that it can be done with calculated measures but outputs are not matching. 😐 If someone can help me to translate those two, would be very helpful!


Thanks!

2 Replies