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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ritanoori
Resolver I
Resolver I

Return value of a column based on selection

Hello everyone, 

I have below request where we need to do some transformation in original source data then pivot and add T/F formula. 

Is there a way in PBI that I can reach the required T/F formula and then visualise. 

 

Source- Added Col 1Source- Added Col 1Source- Added Col 2Source- Added Col 2Output layout with T/F FormulaOutput layout with T/F Formula

Thank you so much 

7 REPLIES 7
ritanoori
Resolver I
Resolver I

@v-diye-msft Thanks. This will be the last step to use if. What I want to acheive first is to pivot by company, location and curr the compare each company, location base and trans cur. 

then apply if function.

Hi @ritanoori 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly. If not, please kindly elaborate more. thanks!

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @v-diye-msft No, I wasn't able to find a solution yet. 

v-diye-msft
Community Support
Community Support

Hi @ritanoori 

 

You can use the IF function to achieve the requirement:

https://docs.microsoft.com/en-us/dax/if-function-dax 

 

Similar threads could be your reference:

https://community.powerbi.com/t5/Desktop/Multiple-IF-AND-OR-Function/m-p/1111883 

https://community.powerbi.com/t5/Desktop/IF-function-with-multiple-conditions/m-p/204241 

https://community.powerbi.com/t5/Desktop/Multiple-IF-statement-DAX/m-p/982633 

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

@ritanoori , We are not able to see any C or D column, Do it is difficult to make sense.

Can you share sample data and sample output in a 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

Hi @amitchandak 

thanks for reply. My bad I tried to upload the excel but couldn't and I forgot to change the picture comment. I uploaded a new picture which has the details for C & D cols. 

Pragati11
Super User
Super User

Hi @ritanoori ,

 

Please follow the following article on Pivot/Un-pivot in Power BI:

https://databear.com/power-bi-pivot-and-unpivot-columns/

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.