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 Guys!
I'm encountering an problem in which i want to acheive what if parameters functionality because i'm using Report server and it won't work on RS , i need to use same working like pattern , now if i want to get all the values of a column in a measure how can i do it just like SQL query in which e.g select col1 from tab1; i want to achieve same thing in dax
Solved! Go to Solution.
Hi @zainqazi96 ,
You can use reference in the power query first and then convert the table by unpivot column and remove the unwanted columns.
then create below formula in powerbi, enabling dynamic selection of column name in the slicer.
slicer_by_columnName = VALUES('Table (2)'[Attribute])
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @zainqazi96 ,
You can use reference in the power query first and then convert the table by unpivot column and remove the unwanted columns.
then create below formula in powerbi, enabling dynamic selection of column name in the slicer.
slicer_by_columnName = VALUES('Table (2)'[Attribute])
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @zainqazi96,
Can you please try the following:
1. Create a Calculated Table
DistinctColumnValues = DISTINCT('TableName'[ColumnName])
2. Use the calculated table to create a slicer in your report
3. Create a Measure to Reflect the "What If" Selection
DynamicMeasure =
VAR SelectedValue = SELECTEDVALUE('DistinctColumnValues'[ColumnName], "Default Value")
RETURN
CALCULATE(
[YourCalculation],
FILTER(
'TableName',
'TableName'[ColumnName] = SelectedValue
)
)
Hope this helps!
@Sahir_Maharaj i don't get it , how can i use column name in slicers , based on dynamic selections
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 |
---|---|
11 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
19 | |
17 | |
12 | |
9 | |
9 |