Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
Can you use DAX expressions to set parameters? Basically, I have a very large multi year detailed data set and a summary query. What I would like to do is use the summary query to present information and use any selections that are made in a direct query to the detail records. I figured this is best done by setting selections as parameters to be used in the direct query but I can't tell if it works yet.
Solved! Go to Solution.
Hey,
PowerQuery queries are creating the "1st level" of the data model, the "2nd" level is created by something than can be considered as model processing, this "materializes" all the calculated column that have been added using DAX.
Finally a user interacts with the model (2nd level) by selecting values from a slicer, etc ...
These interactions can not be passed down to the levels that have been creating the data model. This explains why a measure can not be used inside a calculated column. From a technical point of view this is possibel, but the value of the calculated column will not change if the the measure will change, e.g. by a user interaction with the data model.
Regards,
Tom
Hello everyone and thank you in advance for the help.
My question is related.
Sometimes,for decision of the management of a company they want to create different Reporting Database in a different SQL database for similar data, for this reason in Powerbi you need sometime to create different group of parameters where the name of the fields are perfectly the same.
Is possible with Dax to change the description inside the parameter so you don't need to create a group of parameters for each single different table in the SQL database, where the fields name are perfectly the same?
Hey,
unfortunately it's not possible to pass the value from any DAX statement to a parameter that is used to fetch data from a data source.
This in a way would be result into some kind of circular dependency.
As a data refresh, meaning "reading" data from a datasource, creates the basis for any DAX statements.
Regards,
Tom
I can see how this could be an issue if I was using DAX to pass a parameter to the same query I used the DAX on, but I was hoping to taking selections from slicers/visuals built based off of query A, set it as a paramater, and use that in query B.
Hey,
PowerQuery queries are creating the "1st level" of the data model, the "2nd" level is created by something than can be considered as model processing, this "materializes" all the calculated column that have been added using DAX.
Finally a user interacts with the model (2nd level) by selecting values from a slicer, etc ...
These interactions can not be passed down to the levels that have been creating the data model. This explains why a measure can not be used inside a calculated column. From a technical point of view this is possibel, but the value of the calculated column will not change if the the measure will change, e.g. by a user interaction with the data model.
Regards,
Tom
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
60 | |
58 | |
56 | |
38 | |
28 |
User | Count |
---|---|
82 | |
61 | |
45 | |
41 | |
39 |