Forum Discussion

Rewind's avatar
Rewind
Icon for Helper I rankHelper I
5 years ago
Solved

DAX for PowerBI Paginated Report - Multiple Values Selected

I am building a Paginated Report using a Power BI dataset.

 

I've been able to enable parameters to allow users to filter for a specific dataset (e.g. Literacy class group) if they select a single class using the method outlined here: https://audministrator.wordpress.com/2019/12/20/power-bi-report-builder-using-parameters/?unapproved=14063&moderation-hash=01e3a55baf8c3be22e8e9b39a78f77ab#comment-14063

 

However this only works if the user selects one value and not multiple values.

 

The DAX is FILTER(VALUES('ref_LiteracyClass'[Literacy_Class]), PATHCONTAINS(@LiteracyClass, 'ref_LiteracyClass'[Literacy_Class])) where '@' value is the parameter value selected.

 

Is there an alternate DAX query I could use? It seems like the FILTER operation will only return one value.

3 Replies