Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi, how can I get a table in Power BI to source from my imported Excel data and mimic what I have in Excel like this?:
Row 2 is referencing the sum of each Game in the Data Source tab.
Row 3 is static numbers.
Row 4 is percentage which is simply calculated by Storage / Storage Limit (e.g., = D2/D3)
Data Source:
My goal is to format the source data like the table above, which will update with new "Over/Under Limit %" and total "Storage" number for each game when users select "PC" vs "Mobile" Type. The "Storage Limit" is static and never changes.
Is there a way to set this up in Power BI Desktop or Services?
File: https://we.tl/t-89xQIa4SKg
Solved! Go to Solution.
Hi @techsheep
You can easily achieve this in power bi by creating a static storage limit table, measure and matrix visual. Download PBIX file from the given link and check your desired result:
How to format table in power bi
Steps:
1. Load data to power bi and open power query and unpivot data. See image:
Select first column, right click and select Unpivot other column. You will get the result below:
2. Create a static table for storage limit using dax or power query or in excel then import in power bi. I have used Dax:
Formula:
Storage Limit =
DATATABLE(
"Game", STRING,
"Storage Limit", INTEGER,
{
{"Game A", 150},
{"Game B", 125},
{"Game C", 50}
}
)
3. Create 3 measure:
Total Storage = SUM('Table'[Value])
Storage Limit =
CALCULATE(
SUM('Storage Limit'[Storage Limit]),
TREATAS(VALUES('Table'[Game]), 'Storage Limit'[Game])
)
Storage Percentage =
DIVIDE([Total Storage], [Storage Limit])
4. Select matrix visual. Place Game in column, and newly create measure in values and go to value format option and turn on switch values to rows. You are done. See image:
Hope this helps!!
If this solved your problem, please accept it as a solution and a kudos!!
Best Regards,
Shahariar Hafiz
Hi @techsheep
For solution could you please follow the following steps:
Right-click on the first column > Unpivot Other Columns.
Storage Limit =
DATATABLE(
"Game", STRING,
"Storage Limit", INTEGER,
{
{"Game X", 300},
{"Game Y", 250},
{"Game Z", 180}
}
)
Updated Data in Image:
1.Total Storage = SUM('Table'[Value])2.Storage Limit =
CALCULATE(
SUM('Storage Limit'[Storage Limit]),
TREATAS(VALUES('Table'[Game]), 'Storage Limit'[Game])
)3.Storage Percentage =
DIVIDE([Total Storage], [Storage Limit])
Hi @techsheep
You can easily achieve this in power bi by creating a static storage limit table, measure and matrix visual. Download PBIX file from the given link and check your desired result:
How to format table in power bi
Steps:
1. Load data to power bi and open power query and unpivot data. See image:
Select first column, right click and select Unpivot other column. You will get the result below:
2. Create a static table for storage limit using dax or power query or in excel then import in power bi. I have used Dax:
Formula:
Storage Limit =
DATATABLE(
"Game", STRING,
"Storage Limit", INTEGER,
{
{"Game A", 150},
{"Game B", 125},
{"Game C", 50}
}
)
3. Create 3 measure:
Total Storage = SUM('Table'[Value])
Storage Limit =
CALCULATE(
SUM('Storage Limit'[Storage Limit]),
TREATAS(VALUES('Table'[Game]), 'Storage Limit'[Game])
)
Storage Percentage =
DIVIDE([Total Storage], [Storage Limit])
4. Select matrix visual. Place Game in column, and newly create measure in values and go to value format option and turn on switch values to rows. You are done. See image:
Hope this helps!!
If this solved your problem, please accept it as a solution and a kudos!!
Best Regards,
Shahariar Hafiz
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 35 | |
| 24 | |
| 22 |
| User | Count |
|---|---|
| 135 | |
| 109 | |
| 57 | |
| 43 | |
| 38 |