User Profile
pies
Frequent Visitor
Joined 4 years ago
User Widgets
Contributions
Power BI Report Builder - Distinct Parameter Values while maintaining Data Model
Hello, I have read so many blog/ forum posts on this but I can't for the life of me get this working, so I really appreciate any help. I am creating a Paginated Report, which is linked to a Power BI Dataset that has two tables which are linked together. I want cascading parameters, and this works if I add the parameters by right clicking the Parameters folder and selecting Add Parameter, then getting Available Values from a Query pointing to the relevant table . Done this way, the selection I make in my first parameter limits the options available in the second (yay) EXCEPT that the values in the parameter drop down are not DISTINCT, so I literally have the same option appearing 20+ times: If I add the parameter when creating my datasets (by dragging a field into the Parameters section in the Query Designer) then I get DISTINCT values, but the first parameter no longer filters the second. To try and resolve this I have created separate tables that have DISTINCT values using a Query like the below: DEFINE VAR DistinctValuesTable = SUMMARIZE ( FILTER ( 'EntityGroup', EntityGroup[Organisation] = SELECTEDVALUE(@EntityGroupOrganisation) ), 'IndicatorHandbook'[Corporate Plan / Annual Report] ) EVALUATE DistinctValuesTable Then I set the Available Values for the parameter to this table, which does remove duplicates but the issue remains that the options in subsequent parameters are not affected by earlier selections. Any help would be greatly appreciated. I can't figure out why this would be so difficult, surely no-one wants the parameter options to work this way by default?!7.7KViews4likes2Comments
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.