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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
julianst24
Frequent Visitor

Help with a table transformation

Hi all, ive created a table with some rankings from another table, the thing is that i cannot group it in "transform data" as its manually created by some rules in PBI, but i need this table to occup only 1 row and im getting it into 3 differents. how can i force it to be in only one row? in this way i can connect this table to another for a 1-1 relation and subsequent logics...

julianst24_0-1652108817139.png

Thanks in advance

1 ACCEPTED SOLUTION

Hi @julianst24,

 

Please make a little bit change to the earlier formula.

final table =
SUMMARIZE (
    Data,
    Data[serial],
    "RANKING1", MAX ( Data[RANKING1] ),
    "RANKING2", MAX ( Data[RANKING2] ),
    "RANKING3", MAX ( Data[RANKING3] ),
    "START DATE RANKING1", MAX ( Data[START DATE RANK1] ),
    "START DATE RANKING2", MAX ( Data[START DATE RANK2] ),
    "START DATE RANKING3", MAX ( Data[START DATE RANK3] ),
    "END DATE RANKING1", MAX ( Data[END DATE RANK1] ),
    "END DATE RANKING2", MAX ( Data[END DATE RANK2] ),
    "END DATE RANKING3", MAX ( Data[END DATE RANK3] )
)

 

Then, the Calculated Table will look like this.

vcazhengmsft_1-1652685145961.png

 

Also, attach the sample pbix as reference.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

View solution in original post

5 REPLIES 5
v-cazheng-msft
Community Support
Community Support

Hi @julianst24,

 

Please make some changes to your formula.

final table =
SUMMARIZE (
    Data,
    "serial", MAX ( Data[serial] ),
    "RANKING1", MAX ( Data[RANKING1] ),
    "RANKING2", MAX ( Data[RANKING2] ),
    "RANKING3", MAX ( Data[RANKING3] ),
    "START DATE RANKING1", MAX ( Data[START DATE RANK1] ),
    "START DATE RANKING2", MAX ( Data[START DATE RANK2] ),
    "START DATE RANKING3", MAX ( Data[START DATE RANK3] ),
    "END DATE RANKING1", MAX ( Data[END DATE RANK1] ),
    "END DATE RANKING2", MAX ( Data[END DATE RANK2] ),
    "END DATE RANKING3", MAX ( Data[END DATE RANK3] )
)

 

Then, the Calculated Table will look like this.

vcazhengmsft_0-1652319402107.png

 

Also, attach the sample pbix as reference.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

Hey! thank you very much, although i have some issue, the data finnally has a lot more Serials in it so the MAX function gives me only 1 SERIAL while i would need this applied to every Serial in DATA Table:

julianst24_0-1652445157288.png

this is a sample of the data, as you see, there are more than 1 serial and they are also repetead...how can i change the code to bring each "MAX" occurence of every serial??

Thanks a lot!!

Hi @julianst24,

 

Please make a little bit change to the earlier formula.

final table =
SUMMARIZE (
    Data,
    Data[serial],
    "RANKING1", MAX ( Data[RANKING1] ),
    "RANKING2", MAX ( Data[RANKING2] ),
    "RANKING3", MAX ( Data[RANKING3] ),
    "START DATE RANKING1", MAX ( Data[START DATE RANK1] ),
    "START DATE RANKING2", MAX ( Data[START DATE RANK2] ),
    "START DATE RANKING3", MAX ( Data[START DATE RANK3] ),
    "END DATE RANKING1", MAX ( Data[END DATE RANK1] ),
    "END DATE RANKING2", MAX ( Data[END DATE RANK2] ),
    "END DATE RANKING3", MAX ( Data[END DATE RANK3] )
)

 

Then, the Calculated Table will look like this.

vcazhengmsft_1-1652685145961.png

 

Also, attach the sample pbix as reference.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

Thank you very much for the solution, really appreciate it! have a great week 🙂

Tutu_in_YYC
Super User
Super User

These type of transformations are best done in Power Query. Do you have access to power query?

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.