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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Need to populate the data based on 2 filter conditions

I have a requirement where I need to populate the data based on 2 filter condition
 
Table : taskid, kpireport (1,0) , programname 
 
1. If i am choosing all the programs from the slicer, it has to show only the task related with 3000 
 
2. If i am choosing the specific program from the slicer, then i need to show the taskids which the column kpireport showsd the value as 1
 
If i choose the department name as All , i need to show the column "next_step_all" is 1
: If i choose any specific department name, i need to show the column "kpireport" is 1
How to achieve this

 

 

 

f3000_f= SWITCH(true(),
Projecttasks[check_filter]=False(),LOOKUPVALUE(Projecttasks[pasa_taskid],Projecttasks[next_steps_all],"1",Projecttasks[pasa_gate],SELECTEDVALUE(Projecttasks[pasa_gate])),"no value")


f3000_t = SWITCH(true(),
Projecttasks[check_filter]=True(),LOOKUPVALUE(Projecttasks[pasa_taskid],Projecttasks[KPIReport],"1",Projecttasks[pasa_gate],SELECTEDVALUE(Projecttasks[pasa_gate])),"no value")

mkarthik_0-1652341147956.png

 

 

3 REPLIES 3
Anonymous
Not applicable

Please find gmail drive link which has sample and data.

 

https://drive.google.com/drive/folders/1sB0qW4fKnfyzTbLzIbKkaD-oKdSzYVbZ?usp=sharing

 

v-xiaotang
Community Support
Community Support

Hi @Anonymous 

usually information below is needed, could you provide it? Thanks.

 (1) a sample file, you can replace raw data with bogus data to protect your privacy.

     or provide some sample data that fully covers your issue/question.

(2) give your expected result and its math formula based on the sample you provide.

Kindly note: Please ensure the data in sample is concise and representative.

Thanks.

 

 

Best Regards,

Community Support Team _Tang

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

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. Avoid posting screenshots of your source data if possible.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors