Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
sachinnamdeo798
Frequent Visitor

Dynamic selection with percentage slicer

Dear community

"I Want to slice dealer  achivemnt sales with percentage slicer".
 I have 2 table
cube_invoice
cube _arget,
in cube_invoice table have their dealer code and its sales quantity ,
in cube _target, table also have dealer code and its  target  quantity.
with the help of data modeling i combine these table and get this condition 
29 apr.png
Here target achieved with this measure 

Target Achieved % = DIVIDE( SUM(CUBE_INVOICE[INVOICE QUANTITY]), SUM(CUBE_TARGET[TARGET QUANTITY]) )


Now i want To satisfy this condition if I select 0 to 20% on the slicer, then it will only return the names of dealers who have achieved 20% sales; that is, it should not return the entire value of the slices.
Please help


2 REPLIES 2
v-cgao-msft
Community Support
Community Support

Hi @sachinnamdeo798 ,

Consider creating an unconnected enter table for the slicer.

vcgaomsft_0-1682992321051.png

Then create a measure and use it as the filter for the table visualization. like this.

Measure = 
SWITCH(
    SELECTEDVALUE('Table'[Percentage]),
    "0 to 20%",IF([Target Achieved %]>=0.2,1),
    "0 to 40%",IF([Target Achieved %]>=0.4,1),
    "0 to 60%",IF([Target Achieved %]>=0.6,1),
    "0 to 80%",IF([Target Achieved %]>=0.8,1)
)

vcgaomsft_1-1682992794717.png

You can modify it according to your actual needs.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.