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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
New_be
Helper V
Helper V

Return String Column by valuating numbers column

Hi expert,

 

Problem:

I have a problem with one of my report. I try to return/create a column for string by valuating a number column. Below I have an example.

 

Scenario:
Left image are showing an orderID along with its sequence (SEQ). But here, let say if we filter on "PROCESS = PRO", then we will only be able to see "SEQ" is equal to 6. What I wanted to create is, although we filter on the process column, I will have the MIN sequence. 

OutputBoard_MinProcess.jpg

 

Below image is my desired table. I only be able to create "MIN SEQ" column.  But I don't know how to get "MIN PROCESS" column. 

OutputBoard_MinSeq.jpg

 

Can someone please advise and show to me how I can work around to get "MIN PROCESS" column? Thanks in advance!

 

 

1 ACCEPTED SOLUTION
ghoshabhijeet
Solution Supplier
Solution Supplier

@New_be  Thanks for sharing your query.

 

Here is my solution. Please try this.

Create the following two measures and use it on your table:

 

Min SEQ = CALCULATE(MIN('DataTable'[SEQ]), REMOVEFILTERS('DataTable'))
Min PROCESS = 

VAR MinSEQ = [Min SEQ]

RETURN

CALCULATE(MIN('DataTable'[PROCESS]), 'DataTable'[SEQ] = MinSEQ, REMOVEFILTERS('DataTable'))
 
Here is the result:
ghoshabhijeet_0-1654589287254.png

 

** If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution, so that it comes in top of the search and help others. Thank you !

Good Luck 👍

 

View solution in original post

1 REPLY 1
ghoshabhijeet
Solution Supplier
Solution Supplier

@New_be  Thanks for sharing your query.

 

Here is my solution. Please try this.

Create the following two measures and use it on your table:

 

Min SEQ = CALCULATE(MIN('DataTable'[SEQ]), REMOVEFILTERS('DataTable'))
Min PROCESS = 

VAR MinSEQ = [Min SEQ]

RETURN

CALCULATE(MIN('DataTable'[PROCESS]), 'DataTable'[SEQ] = MinSEQ, REMOVEFILTERS('DataTable'))
 
Here is the result:
ghoshabhijeet_0-1654589287254.png

 

** If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution, so that it comes in top of the search and help others. Thank you !

Good Luck 👍

 

Helpful resources

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

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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