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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Kathrinens
Frequent Visitor

Split up and stack data from API

I have a data from an API, that I don't know how to transform correctly. I'm still a bit new to Power BI, so I hope it's not a stupid question.

 

The data describes amount of logins per day on different computers. First column is the computer, and the second is both the date and amount of logins that day. As you can see on the screenshot below, the second column contains several data + logins. 

 

Kathrinens_0-1699528595424.png

 

I would like to have a table like this:

 

(id) | date | pc-name | amount of logins

1 | date1 | pc-nam1A | 3
2 | date1 | pc-nameB |  6

...

 

I know how to split up the column so I get date and logins in different columns, but I don't know how to stack the different dates on top of each other. There's also consistantly coming in new data, so I don't think I can just copy the table and merch.
Any ideas are welcome 🙂

1 ACCEPTED SOLUTION
Kathrinens
Frequent Visitor

FYI: I finally found a way myself. Under Split Column there's an Advanced Options where I could choose rows instead of columns. So I split the second column up in rows by each comma, and then split the same column up by colon in to columns, to get date and amount of logins separated. 
With this way data also updates correctly. 🙂 

View solution in original post

1 REPLY 1
Kathrinens
Frequent Visitor

FYI: I finally found a way myself. Under Split Column there's an Advanced Options where I could choose rows instead of columns. So I split the second column up in rows by each comma, and then split the same column up by colon in to columns, to get date and amount of logins separated. 
With this way data also updates correctly. 🙂 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.