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

View all the Fabric Data Days sessions on demand. View schedule

Reply
TriveniN
Helper II
Helper II

How to allow users to enter data for slicer

Hi ,

I have new requirment and in requirment document they mentioned as user has to provide data for slicers("Occupancy Target (%)")

Note : Normally in slicer , we have an option to select data, but here in this case user has to enter data interms of %.

 

Below is the formulae for "Total # of Homes"  and "Target Occupancy at month-end"

SELECT COUNT(*) FROM ACQUIR WITH(NOLOCK) WHERE Unit_Status__c NOT IN ( 'disposed', 'Model' )

 

Target Occupancy at month-end = Total # of Homes * Occupancy Target (%)

when user enter data for Occupancy Target (%) slicer , it will show data for measure "Target Occupancy at month-end" based on user input.

 

Regards,

Triveni N.

 

1 ACCEPTED SOLUTION
qqqqqwwwweeerrr
Super User
Super User

Hi @TriveniN 

 

Here is the solution that you were looking for i have taken random sample data 
As per you SQL Query you have to count all the rows expcet disposed and model hence as per my sample data it should be 5.

qqqqqwwwweeerrr_0-1709563205766.png

 

Now you need to create decimal paramter for which you folow this setp

qqqqqwwwweeerrr_1-1709563349217.png

and create two measrue first for row conut (total # if homes):

RowCount =
COUNTROWS (
    FILTER (
        'Sheet6',
        'Sheet6'[Unit_Status__c] <> "disposed" && 'Sheet6'[Unit_Status__c] <> "Model"
    )
)
second to multiple by %: 
Measure = [RowCount]*Parameter[Parameter Value] here parameter value is user input. this will give you output somethingh like this 
qqqqqwwwweeerrr_2-1709563505449.png

you can also follow this video for creating paramter: https://youtu.be/O9Be1d_oi6Y

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more interesting solution here: www.youtube.com/@Howtosolveprobem

Regards

 

 

View solution in original post

1 REPLY 1
qqqqqwwwweeerrr
Super User
Super User

Hi @TriveniN 

 

Here is the solution that you were looking for i have taken random sample data 
As per you SQL Query you have to count all the rows expcet disposed and model hence as per my sample data it should be 5.

qqqqqwwwweeerrr_0-1709563205766.png

 

Now you need to create decimal paramter for which you folow this setp

qqqqqwwwweeerrr_1-1709563349217.png

and create two measrue first for row conut (total # if homes):

RowCount =
COUNTROWS (
    FILTER (
        'Sheet6',
        'Sheet6'[Unit_Status__c] <> "disposed" && 'Sheet6'[Unit_Status__c] <> "Model"
    )
)
second to multiple by %: 
Measure = [RowCount]*Parameter[Parameter Value] here parameter value is user input. this will give you output somethingh like this 
qqqqqwwwweeerrr_2-1709563505449.png

you can also follow this video for creating paramter: https://youtu.be/O9Be1d_oi6Y

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more interesting solution here: www.youtube.com/@Howtosolveprobem

Regards

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors