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
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.

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
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.