The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
My data is made up of scores for 24 different organizations across a single state. On the report, we want the consumer to be able to select the state they want to view data for via a slicer on the main page; however, we also want a visual that compares the organization specific scores (Site Score) and scores across all orgs in the state (State Score) side by side.
My first thought to do this was to create two identical dataset, but have the state score set disconnect from the variable used to filter by site. When I try to visual the data, however, the scores are incorrect. In the visual below (see figure 1), the dark and light blue scores should be identical because the filter is turned off, but for some reason the State Scores are static at 28.8%. This stays the same even when I use the filter (see figure 2).
Any assistance for why this is happening is much appreciated! Also, if you have any recommendations for how to create the Total State Score variable is unaffected by the slicer that is also helpful!
(Figure 1 = Scores should be identical because slicer is off)
Figure 2: State score stays inaccurate with slicer active.
Solved! Go to Solution.
Hi @GraceJinM ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Create a calculated table
Table 2 =
SUMMARIZE(
'Table',
'Table'[State],
'Table'[Organization]
)
Create two meaures
Site Score =
CALCULATE(
SUM('Table'[Value]),
FILTER(
ALL('Table'),
SELECTEDVALUE('Table 2'[Organization]) = 'Table'[Organization] && 'Table'[State] = SELECTEDVALUE('Table 2'[State])
)
)
State Score =
CALCULATE(
SUM('Table'[Value]),
FILTER(
'Table',
'Table'[State] = SELECTEDVALUE('Table 2'[State])
)
)
Use Table 2[State] and Table 2[Oragnization] as slicer
Fianl output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @GraceJinM ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Create a calculated table
Table 2 =
SUMMARIZE(
'Table',
'Table'[State],
'Table'[Organization]
)
Create two meaures
Site Score =
CALCULATE(
SUM('Table'[Value]),
FILTER(
ALL('Table'),
SELECTEDVALUE('Table 2'[Organization]) = 'Table'[Organization] && 'Table'[State] = SELECTEDVALUE('Table 2'[State])
)
)
State Score =
CALCULATE(
SUM('Table'[Value]),
FILTER(
'Table',
'Table'[State] = SELECTEDVALUE('Table 2'[State])
)
)
Use Table 2[State] and Table 2[Oragnization] as slicer
Fianl output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
94 | |
93 | |
88 | |
70 | |
65 |
User | Count |
---|---|
232 | |
128 | |
116 | |
82 | |
82 |