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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Slicer from 2 different columns

Hi,

I have 2 status column I need to have a slicer for the usere from both the columns .

I should create a column if the Status is Active from Active_Status irrespective of anything in Unavaliable_Status and I should get Unavaliable if the value is unavaliable from Unavaliable_Status.

image.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

If you two status columns can be shown in power query, you can try to merge. 

Select two columns in Power Query and right-click to select merge columns.

1.png

Click OK.

2.png3.png

 

Or you can create a calculated column.

Required result = IF([Acitive_Status]=BLANK(),[Unavailable_Status],[Acitive_Status])

4.png

 

You can check more details from

 

Best Regards,

Stephen Tao

 

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

14 REPLIES 14
Anonymous
Not applicable

Hi @Anonymous ,

 

If you two status columns can be shown in power query, you can try to merge. 

Select two columns in Power Query and right-click to select merge columns.

1.png

Click OK.

2.png3.png

 

Or you can create a calculated column.

Required result = IF([Acitive_Status]=BLANK(),[Unavailable_Status],[Acitive_Status])

4.png

 

You can check more details from

 

Best Regards,

Stephen Tao

 

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

Tahreem24
Super User
Super User

@Anonymous ,

Try to create Calculated Column like below:

Column = IF(ISBLANK(Tbl2[Available Stautus])=FALSE(),"Active","Inactive")
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

@Tahreem24 ,

All the blank are filling up as Inactive

@Anonymous  - It was Active Status:

Column = IF(ISBLANK(Tbl2[Active Stautus])=FALSE(),"Active","Inactive")

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

@Anonymous  so tweak your DAX like this:

Column = IF(ISBLANK(Tbl2[Active Stautus])=FALSE() OR ISBLANK(Tbl2[Unavailable Status],"Active","Inactive")

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

@Tahreem24 ,

This is my requirment 

Rule_1 : When Active_Status = "Available" and Inactive_Status ="Unavailable" or "".
Rule_2 : When Inactive_Status = "Unavailable" and Active_Status = "Available" or "".
Anonymous
Not applicable

@Tahreem24 ,

Column = IF(ISBLANK(Tbl2[Available Stautus])=FALSE(),"Active","Inactive")

I dont have column called Available Status, what is it refreing for ?

 

amitchandak
Super User
Super User

@Anonymous , Create a new column like

if(isblank([Active_status]), [Unavaliable_Status],[Active_status])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak ,

I used same formular .

Here is what I am getting.

raks3_0-1613398217925.pngimage.png

@Anonymous , try like

if(isblank([Active_status]) || [Active_status] = "", [Unavaliable_Status],[Active_status])

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I have shared the sample data to your mail please check 

Anonymous
Not applicable

Check your email

@Anonymous , there is no email in my inbox. Can please share again

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.