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
DeltaMetal
New Member

If a Condition is met then Custom Column is not generated

Hi

 

I am trying to create multiple custom column based on Text Split. How do I place a condition that says that if the number is higher than max value of another column in this caase Comma Numbers then just dont create the column?

 

DeltaMetal_0-1660648186775.png

 

Also Can I create these colyumns in amore efficient way (single/ lesser Added custom rows?)

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @DeltaMetal ;

Is your problem solved?  If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.


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

v-yalanwu-msft
Community Support
Community Support

Hi, @DeltaMetal ;

Do you have simple examples and would like to output results to make it easier to understand your logic?

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community


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

Ehren
Employee
Employee

Yes, you can do this by using an if expression to return previousStepName instead of Table.AddColumn(previousStepName, ...) when a condition is met.

 

Can you describe the high-level goal you're trying to accomplish with all these splits and conditionals?

Hi

We have a column with string of data separated by commas. There in no maximum limit on this string and we will need to reconcile this data biweekly. In process of creating the reconciliation file we need the same 4 repeating set of data in the string. The process as shown in the image.

We were hoping if there is any way to make it dynamic so as to stop the creation of extra columns when data is not present?

Also, if there is a more efficient way for this that you can point to it will be greatly appreciated.

 

P.S. – We are using Microsoft 365 and we are not seeing TEXTSPLIT as formula option.

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