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

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.

Reply
Anonymous
Not applicable

Dynamically create measure based table

I have a datamodel with 5 tables- each having 2 measures M1 & M2

All M1 measures for each of these tables relate to Tasks- so i want to call the row as "Tasks"

All M2 measures for each of these tables relate to Travelers- so i want to call this row as "Travelers"

Those 10 measures are M1T1, M1T2, M1T3..............M2T5 as shown in some cells in a sample image below

 

I want to create a 6th table "Table 6" which would use these 10 measures in each of the cells highlighted below to show me something as this in data mode:

 

                                   Table 1       Table 2       Table 3       Table 4      Table 5

Measure 1- Tasks        M1T1         M1T2          M1T3         1529          836

Measure 2- Travelers   M2T1         200             1200           1200         M2T5

 

I need to create this 6th table with this view having multiple measures because i want to use a visualization using the values in this table.

Currently, i cannot use any visualization that would show me a graph based on 10 different measures clubbing them in 2 categories (Tasks, Travelers) without thinking of this 6th table.

2 ACCEPTED SOLUTIONS
parry2k
Super User
Super User

@Anonymous you can create a table using summarize function and then use UNION to append these tables together, something like dax expression given below

 

Table6 = 
UNION (
SUMMARIZE ( Table1, Table1[Id], "Name", "Table1", "Tasks", [Task Measure], "Travelers", [Traveles Measure] ),
SUMMARIZE ( Table2, Table2[Id], "Name", "Table2", "Tasks", [Task Measure], "Travelers", [Traveles Measure] ),
SUMMARIZE ( Table3, Table3[Id], "Name", "Table3", "Tasks", [Task Measure], "Travelers", [Traveles Measure] )
)

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.

 

 



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.

View solution in original post

@Anonymous solution attached, the similar thing you can do in power query instead of Dax

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



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.

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

I am not clear with your question.  Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
parry2k
Super User
Super User

@Anonymous you can create a table using summarize function and then use UNION to append these tables together, something like dax expression given below

 

Table6 = 
UNION (
SUMMARIZE ( Table1, Table1[Id], "Name", "Table1", "Tasks", [Task Measure], "Travelers", [Traveles Measure] ),
SUMMARIZE ( Table2, Table2[Id], "Name", "Table2", "Tasks", [Task Measure], "Travelers", [Traveles Measure] ),
SUMMARIZE ( Table3, Table3[Id], "Name", "Table3", "Tasks", [Task Measure], "Travelers", [Traveles Measure] )
)

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.

 

 



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

Hi @parry2k , i was trying to create it- but i may need a bit more help- please suggest:- 

What should be referenced for Table1[Id], Table2[Id]......? 

Also, these Task Measures and Traveler Measure would be unique like M1T1 for Table 1, Taks Measure and M2T5 for Table 5 Traveler Measure?

@Anonymous table 1 , 2, 3 refers to the name of your tables. Id is just an example column. whatever common columns you want from these tables, you will list all there.



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

@parry2k There are no common columns- i think this is what would be needed to group them right?

Unfortunately, these table do not relate to one another

I'll share more to be clear- please see if that helps

 

 Table 1Table 2Table 3Table 4Table 5
Tasks1237131515741529836
Travelers751420012001200800

 

In the table above- i have all 10 measures giving me values as is highlighted in orange.

But i don't know if Summarize would work since i don not have a common column- i just want these measures to appear as shown above in a table so that later i can use them in some visualization.

 

@parry2k - Is there a way i can use any visual would would take in all these 10 measures? I want to show something like this 

 

Gguliani_0-1593049204571.png

 

Anonymous
Not applicable

Hi @parry2k , @Ashish_Mathur 

https://drive.google.com/file/d/1IW3idw1azJ2-1wf2Z-HXy610hKlsmorX/view?usp=sharing

 

I created dummy data which replicates my requirement in this PBIX file attached.

So, this PBIX file has 5 tables- each has 2 columns- Tasks and Travelers. The values in any of the tables do not relate to the value in another table.

In Excel- my data would look like below- Tasks as Count & Travelers as Distinct Count

 

 Table1Table2Table3Table4Table5
TASKS (COUNT)10020304050
TRAVELERS (DISTINCT COUNT)5010152025

 

I want to create a visual out of these 5 tables as below:- 

 

Gguliani_0-1593098964576.png

 

 

@Anonymous solution attached, the similar thing you can do in power query instead of Dax

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



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.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.