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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Table structure

Hi,

I'm working with data that will have about 10 million rows per day. Currently, the rows are nested which is something Power BI can't handle. The question that arises is the structure of the table. We have sessions where each sessions has multiple moments. We are trying to avoid the increase of rows, if we have 5 moments, then each session will have 5 rows with one type of moment per row. I know Power BI wants to work with rows and columns in a tabular format, but is there an optimal way to have for example one moment per column and at the same time have one session per row? Tables to try to explain it:

 

Session ID      Moment A   Moment B   Moment C

123A305020
231B103020
321C904050

 

Session ID     Moment   Time

123AA30
123AB50
123AC20
231BA10
231BB30
231BC20
321CA90
321CB40
321CC50

 

We want to be able to show the percentage of the total, so for session ID 123A Moment A, it's 30% of the total etc.

Thanks and Merry Christmas!
/Jari

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

You will nedd to either unpivot the table and create one measure to get the percentage value or create multiple measures for each Moment.

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Anonymous , the second one is ideal for you need but if you have 10 Million per day. Unpivot of this data will take huge time and may not work.

 

In that case if you have limited columns you can try like

 

divide(sum(Table[ColumnA]), sum(Table[ColumnA])+sum(Table[ColumnB])+sum(Table[ColumnC])+sum(Table[ColumnD])+sum(Table[ColumnE]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.