Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I'm using Curbal.com's process for exporting data from a report via power automate button and run a query against a dataset while using select operators to pull through filters. The report I'm working on has a lot of filters and some columns will rightly have blanks in some rows. This process works until I come across the below Null value error within the Select Operation step. Hoping someone can help with this problem since I'm so close to making this work.
InvalidTemplate. The execution of template action 'TalentMatrixPlacement' failed: The evaluation of 'query' action 'where' expression '@concat('"', replace(item()?['Talent Matrix Placement'], ', ', '", "'), '"')' failed: 'The template language function 'replace' expects its first parameter 'string' to be a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#replace for usage details.'.
Simplified version of the DAX Query below as well as the Select Operation and the expression used to dynamically change filter within the DAX Query.
Solved! Go to Solution.
If any of the fields handed over from the Power BI integration are blank then you need to drop the related filtertable from the DAX.
Note that you shouldn't use CALCULATE(SUMMARIZE() - use SUMMARIZECOLUMNS instead. Also don't use the ORDER BY unless you really really need to.
If any of the fields handed over from the Power BI integration are blank then you need to drop the related filtertable from the DAX.
Note that you shouldn't use CALCULATE(SUMMARIZE() - use SUMMARIZECOLUMNS instead. Also don't use the ORDER BY unless you really really need to.
Hi @lbendlin,
Can you explain how you would rewrite the DAX using SUMMARIZECOLUMNS? I've only gotten this far by copying what others have done via YouTube. I need all of the filters to stay dynamic and the way she accomplished that is through the combo of TREATAS and KEEPFILTER within the larger CALCULATETABLE function.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |