Forum Discussion
Filter by columns on the fly
- 9 years ago
You could take this approach.
Create a table called Measures. The contents will be
MeasureName , MeasureID as column names
The rows will be
pageviews , 1
visits , 2
bounces, 3
Create a measure in the data model as follows :
Showvalue=switch (TRUE,
Min ( Measures[MeasureID] ) = 1,
( [pageviews] ), /* replace this by your fomula for pagevies or if already exists put that measurename */
Min ( Measures[MeasureID] ) = 2,
( [visits] ), /* replace this by your fomula for visits or if already exists put that measurename */Min ( Measures[MeasureID] ) = 3,
( [bounces] ) ) /* replace this by your fomula for bounces or if already exists put that measurename */
Now create a slicer with Measure table column MeasureName .
In the chart or table , use the measure Showvalue as your values column to chart or display in table and you will have the results.
Credit for this solution goes to Anonymous
You could take this approach.
Create a table called Measures. The contents will be
MeasureName , MeasureID as column names
The rows will be
pageviews , 1
visits , 2
bounces, 3
Create a measure in the data model as follows :
Showvalue=switch (TRUE,
Min ( Measures[MeasureID] ) = 1,
( [pageviews] ), /* replace this by your fomula for pagevies or if already exists put that measurename */
Min ( Measures[MeasureID] ) = 2,
( [visits] ), /* replace this by your fomula for visits or if already exists put that measurename */
Min ( Measures[MeasureID] ) = 3,
( [bounces] ) ) /* replace this by your fomula for bounces or if already exists put that measurename */
Now create a slicer with Measure table column MeasureName .
In the chart or table , use the measure Showvalue as your values column to chart or display in table and you will have the results.
Credit for this solution goes to Anonymous
- acanepa9 years ago
Resolver I
Works great!. Thanks for the help!.
- acanepa9 years ago
Resolver I
Do you know if you can filter axis?, for example percentages against whole numbers?. I'm using FORMAT but is not working.
- dkay84_PowerBI9 years ago
Microsoft Employee
I'm not sure what you are asking. Try the axis options within the visual settings, or try changing the data type for the data displayed on the Y axis. Not sure what "percentages against whole numbers" means.
- acanepa9 years ago
Resolver I
Hi,
Sorry for explain badly.
I'm using different meausures or metrics. A group of metrics use percentages for show data and other group of metrics use whole numbers to show data. I'm trying to format the meausures with the function FORMAT in DAX, but that converts numbers to text.
Thanks in advance for your response.
Rergards,