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 everyone, I want a matrix to show values for a particular filter, L1, from KPI Level by default.
Note: I will use KPI Level as a slicer. When I click on the L2 slicer, the table should display L2 data. For L3 selection, it should show L3 data, and for L1, it should show L1 data.
If no filters from the KPI Level slicer are selected, the table should display only L1 data by default.
The table needs to include the following columns:
- KPI Level
- Region
- Category
- Target
- Actual
Below is the data view of the dataset:
ChatGPT data prompt: https://chatgpt.com/share/b2a755d3-e928-4817-80ef-a643de3c6bf0
Dax formula i used:
Defualt_Target =
Var _a = SELECTEDVALUE(Data[KPI Level], "L1")
Var _b = CALCULATE(sum(Data[Target]), FILTER(Data,
Data[KPI Level]= _a ))
RETURN _b
I am not able to acheive the result what i wanted
Solved! Go to Solution.
Hi Based on my understanding, here is my solotion
Approach I used here is -
1. created a new disconnected table with KPI values
2. switched the output based on KPI filters. formula as below:
@Madhu155154create the two measures below, try them out, and let me know if there are any issues.
Filtered_Target =
VAR SelectedKPI = SELECTEDVALUE(Data[KPI Level], "L1")
RETURN
CALCULATE(
SUM(Data[Target]),
Data[KPI Level] = SelectedKPI
)
Filtered_Actual =
VAR SelectedKPI = SELECTEDVALUE(Data[KPI Level], "L1")
RETURN
CALCULATE(
SUM(Data[Actual]),
Data[KPI Level] = SelectedKPI
)
Hi Based on my understanding, here is my solotion
Approach I used here is -
1. created a new disconnected table with KPI values
2. switched the output based on KPI filters. formula as below:
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 |
---|---|
10 | |
8 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
12 | |
11 | |
9 | |
9 |