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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
atat0105
New Member

Set Values For Slicer

Hello everyone,

 

I have a column which defines each row like below.

 

Column =IF(V_OKM_0[Periyod]<601;"Active";"Passive")

 

then, I show percentage of "Passive" on a card.

 

Measure = CALCULATE(SUM(V_OKM_0[Pasif])/(SUM(V_OKM_0[Aktif])+SUM(V_OKM_0[Pasif])))

 

But I would like to have a slicer includes values of 301, 601, 901 instead of a set value like 601 in example above. Is it possible to do?

 

If slicer is 601,

Periyod - Column

400 - Active

700 -  Passive

1000 - Passive

So, result is %66

 

If slicer is 901,

Periyod - Column

400 - Active

700 -  Passive

1000 - Passive

So, result is %33

 

Thanks a lot.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @atat0105,

 

It is possible, you can refer to below steps:

Tables: Sheet1,sheet2.

Capture5.PNGCapture6.PNG
 

Measures:

 

Sheet2.


Select value:
Select value = if(HASONEVALUE(Sheet2[Amount]),VALUES(Sheet2[Amount]),BLANK())

 

Sheet1.


Get the status of select values:
Active Status = IF(max([Amount])<[Select value],"Active","Passive")

 

Percent of passive:
Percent of Passive = COUNTAX(FILTER(ALL(Sheet1),[Active Status]="Passive"),[ID])/COUNTROWS(ALL(Sheet1))

 

Create visuals.

Table:

Capture7.PNG
 

slicer:

 

Capture8.PNG

 

card:

 

Capture9.PNG
 

Result:
  

1.PNG2.PNG3.PNG


Regards,
Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @atat0105,

 

It is possible, you can refer to below steps:

Tables: Sheet1,sheet2.

Capture5.PNGCapture6.PNG
 

Measures:

 

Sheet2.


Select value:
Select value = if(HASONEVALUE(Sheet2[Amount]),VALUES(Sheet2[Amount]),BLANK())

 

Sheet1.


Get the status of select values:
Active Status = IF(max([Amount])<[Select value],"Active","Passive")

 

Percent of passive:
Percent of Passive = COUNTAX(FILTER(ALL(Sheet1),[Active Status]="Passive"),[ID])/COUNTROWS(ALL(Sheet1))

 

Create visuals.

Table:

Capture7.PNG
 

slicer:

 

Capture8.PNG

 

card:

 

Capture9.PNG
 

Result:
  

1.PNG2.PNG3.PNG


Regards,
Xiaoxin Sheng

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors