Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi All,
I have two tables. One is fact table which contains different metrics(Budget, SalesAmount) and another one is the static table which has a single column of metric names.
Here comes requirement,
1) Need to add slicer which contains metric names.
2) Bar chart which metric. By default, it will show the data for the budget. We should have the capability to change bar chart metric based on the slicer.
Please provide your best possible solution for this.
Solved! Go to Solution.
@Sunkari wrote:
Hi All,
I have two tables. One is fact table which contains different metrics(Budget, SalesAmount) and another one is the static table which has a single column of metric names.
Here comes requirement,
1) Need to add slicer which contains metric names.
2) Bar chart which metric. By default, it will show the data for the budget. We should have the capability to change bar chart metric based on the slicer.
Please provide your best possible solution for this.
I think a workaround can be using a measure like below. The table Metrics is the table containing measure names.
Measure =
IF (
ISFILTERED ( Metrics[Name] ),
SWITCH (
TRUE (),
LASTNONBLANK ( Metrics[Name], "" ) = "Measure1", [Measure1],
LASTNONBLANK ( Metrics[Name], "" ) = "Measure2", [Measure2],
[Other measure]
),
[A default measure]
)
@Sunkari wrote:
Hi All,
I have two tables. One is fact table which contains different metrics(Budget, SalesAmount) and another one is the static table which has a single column of metric names.
Here comes requirement,
1) Need to add slicer which contains metric names.
2) Bar chart which metric. By default, it will show the data for the budget. We should have the capability to change bar chart metric based on the slicer.
Please provide your best possible solution for this.
I think a workaround can be using a measure like below. The table Metrics is the table containing measure names.
Measure =
IF (
ISFILTERED ( Metrics[Name] ),
SWITCH (
TRUE (),
LASTNONBLANK ( Metrics[Name], "" ) = "Measure1", [Measure1],
LASTNONBLANK ( Metrics[Name], "" ) = "Measure2", [Measure2],
[Other measure]
),
[A default measure]
)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 3 | |
| 3 | |
| 2 |