Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
79 | |
58 | |
35 | |
32 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |