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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to create table based on minimum date from other table

Hi Folks,

 

I want to create second table from first table using filters with dates and other variables as follows. How to create this ?

Follwowing is the expected table and original table

 

 Original Table 
  
       
 IndexCategoryValue_1Value_2Date 
 1A0.06          1.001/3/2019Minimum Date 
 2A-0.1          4.001/4/2019 
 3A0.03        58.001/5/2019 
 4A0.1        63.001/6/2019 
 5D0.02        64.261/3/2019 
 6D-0.02        62.971/4/2019 
 7D-0.09        57.311/5/2019 
 8D0.04        59.601/6/2019 
       
 DESIRED TABLE 
       
 IndexCategoryValue_1Value_2Date 
 1A0.06          1.001/3/2019 
 5D0.02          1.021/3/2019 
       
       
1 ACCEPTED SOLUTION

@Anonymous 

 

You may use the following DAX to add a calculated table.

Table =
FILTER (
    Table1,
    RANKX (
        FILTER ( Table1, Table1[Category] = EARLIER ( Table1[Category] ) ),
        Table1[Date],
        ,
        ASC,
        DENSE
    ) = 1
)

 

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

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

go to ..> Model --> choose --> new table,

 

As per your requirement, use the below formula to create a table.

 

Table = CALENDAR(MIN('Earlier'[Date]), MAX('Earlier'[Date]) )

parry2k
Super User
Super User

@Anonymous you don't need new table for this you can achieve this by measure, one thing is not clear from your exmple, why value_2 for D will be 1.02 instead of 64.26 from table A



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Yeah, it is 64.26. Actually, I want to utilize this table for joining purpose hence keeping it in the seperate table. How can I do it? 

@Anonymous 

 

You may use the following DAX to add a calculated table.

Table =
FILTER (
    Table1,
    RANKX (
        FILTER ( Table1, Table1[Category] = EARLIER ( Table1[Category] ) ),
        Table1[Date],
        ,
        ASC,
        DENSE
    ) = 1
)

 

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks for your help. I will try it and let you know if some issue.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors