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,
I'm back.. again. Sorry, I'm so close to finishing my report though!
I want to find out if we're hitting targets. We have been given percentage targets.
I would love to just use one column to do this on my table visual.
I already have measures that give me a target total e.g.
Midlands 22 = SWITCH(SELECTEDVALUE(Data[Programme (Renamed)]),"Midlands",22
South 10 = SWITCH(SELECTEDVALUE(Data[Programme (Renamed)]),"South",10
East 14 = SWITCH(SELECTEDVALUE(Data[Programme (Renamed)]),"East",14
(I use these to plot a line on my graphs)
I'm now using the measures above to find out my percentage:
Thank you - i've tried lots of variations and i'm not winning.
Solved! Go to Solution.
Hi @FlankyPank2___ ,
Create a single measure with the following code:
Target = SWITCH(SELECTEDVALUE(Data[Programme (Renamed)]),
"Midlands",22
"South",10,
"East",14)
Then use the following code:
Target Percentage = [Slicer Day Count]*[Target]
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @FlankyPank2___ ,
Create a single measure with the following code:
Target = SWITCH(SELECTEDVALUE(Data[Programme (Renamed)]),
"Midlands",22
"South",10,
"East",14)
Then use the following code:
Target Percentage = [Slicer Day Count]*[Target]
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you so much - simple.
I need to learn Dax when i've finished this project! Thanks again
Don't forget to accept the correct answer to help others.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThis 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 |
---|---|
72 | |
69 | |
55 | |
37 | |
35 |
User | Count |
---|---|
85 | |
66 | |
59 | |
46 | |
45 |