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

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

Reply
Shine_456
Frequent Visitor

show the no of login user while selecting range in slicer

Hi Friends,

 

I have a query.

 

I have a user table with login time and last logged in time.

for total login i used session=distinctcount( login time)

Now i need is in slicer I have 0,50,100,200,>200 to select. If i select 50 i need to get session>0 && session <=50 users

similarly for 100 i need to get session>50 && session <=100 users etc

for that I have taken new column as 

No_of_session = if(Table[session]>=0 && Table[session]<=50,50, if(Table[session]>=50 && Table[session]<=100,100, if(Table[session]>=100 && Table[session]<=200,200,300))). But I am not getting exact values.
Shine_456_0-1667476691280.png
Shine_456_1-1667476715684.png

from above images if I select 50, then <50 sessions should show.

Shine_456_0-1667478098885.png

 

Can any one tell me the logic to create new column
1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Shine_456 ,

I used the formula you provided, and it can successfully get the correct result.

vkalyjmsft_0-1667539953492.png

vkalyjmsft_1-1667540008087.png

If you want to have all the ranges in the slicer, you can create a new table. Create relationship between the two tables.

vkalyjmsft_2-1667540095884.png

vkalyjmsft_3-1667540122541.png

It also works fine.

vkalyjmsft_4-1667540190539.png

I also create another table with user name to verify it, still works fine, you can download the attached file to see the details.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @Shine_456 ,

Is your problem solved? If so, would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!

Best Regards,
Community Support Team _ kalyj

v-yanjiang-msft
Community Support
Community Support

Hi @Shine_456 ,

I used the formula you provided, and it can successfully get the correct result.

vkalyjmsft_0-1667539953492.png

vkalyjmsft_1-1667540008087.png

If you want to have all the ranges in the slicer, you can create a new table. Create relationship between the two tables.

vkalyjmsft_2-1667540095884.png

vkalyjmsft_3-1667540122541.png

It also works fine.

vkalyjmsft_4-1667540190539.png

I also create another table with user name to verify it, still works fine, you can download the attached file to see the details.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors