Forum Discussion
Most Efficient Query
- 4 years ago
Hi Anonymous
Please try this Calculated column.
CI_c =
IF (
CALCULATE (
COUNT ( CI[PPLCODE] ),
FILTER (
CI,
CI[PPLCODE] = 'IRR Retina'[PPL CD]
&& CI[UPDATED_ON_DT].[Date] > 'IRR Retina'[Contract Start Date_c]
&& CI[UPDATED_ON_DT].[Date] <= 'IRR Retina'[Transaction date_c]
)
) > 0,
1,
0
)
Then, the result should look like this.
Attached the pbix file as reference. If it doesn’t work, could you please provide some sample data used by this formula and let me know the relationship between your tables? Thanks in advance!
In addition, you can use Performance Analyzer to help you optimize your calculation. For more details about Performance Analyzer, please refer to Use Performance Analyzer to examine report element performance.
Best Regards,
Community Support Team _ Caiyun
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi Anonymous
Please try this Calculated column.
CI_c =
IF (
CALCULATE (
COUNT ( CI[PPLCODE] ),
FILTER (
CI,
CI[PPLCODE] = 'IRR Retina'[PPL CD]
&& CI[UPDATED_ON_DT].[Date] > 'IRR Retina'[Contract Start Date_c]
&& CI[UPDATED_ON_DT].[Date] <= 'IRR Retina'[Transaction date_c]
)
) > 0,
1,
0
)
Then, the result should look like this.
Attached the pbix file as reference. If it doesn’t work, could you please provide some sample data used by this formula and let me know the relationship between your tables? Thanks in advance!
In addition, you can use Performance Analyzer to help you optimize your calculation. For more details about Performance Analyzer, please refer to Use Performance Analyzer to examine report element performance.
Best Regards,
Community Support Team _ Caiyun
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!