cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors