Forum Discussion
Dynamic Dimension based on Selected Slicer.
- Anonymous5 years ago
Hi Anonymous ,
Here are the steps you can follow:
1. Create measure.
Measure = if(SelectedValue('Table'[New Field(Vegetables)])<>BLANK(), MAX('Table'[New Field(Vegetables)]), MAX('Table'[New Field(Fruits)]) )2. Place [New Field(Vegetables)] in the slice, and place [Old Field] in the table
3. Result:
When a null value is selected, [New Field(Fruits)] is displayed:
When the field in [New Field(Vegetables)] is selected, the corresponding data is displayed
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Here are the steps you can follow:
1. Create measure.
Measure =
if(SelectedValue('Table'[New Field(Vegetables)])<>BLANK(), MAX('Table'[New Field(Vegetables)]), MAX('Table'[New Field(Fruits)]) )2. Place [New Field(Vegetables)] in the slice, and place [Old Field] in the table
3. Result:
When a null value is selected, [New Field(Fruits)] is displayed:
When the field in [New Field(Vegetables)] is selected, the corresponding data is displayed
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.