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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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