Forum Discussion
Paginated report help using measure and parameter from power bi dataset
- Anonymous3 years ago
I managed to work out a way to achieve what I wanted. Basically I've created new [replicated] measures in the DAX in the paginated report dataset, essentially the same as the originals but using the paginated report parameter as the comparator in the measure. I might have added an unnecessary extra layer in that I also added a VAR vparameter = @parameter and then used the vparameter in the measure, but once I managed to get the parameter settings in everywhere this worked so didnt want to unstrip it.
I've used parameters for years in SSRS but took me quite some time to work out how to add everything necessary into the DAX query builder. Also for some odd reason the parameter was treated as text rather than a date, even though the parameter was setup as Date/Time, so have to convert (using DATEVALUE) to get it to work on the DAX "query".
Thank you to everyone who took the time to look at my post.
Thanks for the pointers. These I am sure will be useful to refer back to, but I cant see the solution to my query here. I am sure it is down to my lack of knowledge of DAX more than anything.
In case it helps an example Measure is:
I managed to work out a way to achieve what I wanted. Basically I've created new [replicated] measures in the DAX in the paginated report dataset, essentially the same as the originals but using the paginated report parameter as the comparator in the measure. I might have added an unnecessary extra layer in that I also added a VAR vparameter = @parameter and then used the vparameter in the measure, but once I managed to get the parameter settings in everywhere this worked so didnt want to unstrip it.
I've used parameters for years in SSRS but took me quite some time to work out how to add everything necessary into the DAX query builder. Also for some odd reason the parameter was treated as text rather than a date, even though the parameter was setup as Date/Time, so have to convert (using DATEVALUE) to get it to work on the DAX "query".
Thank you to everyone who took the time to look at my post.