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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hlynurgudna
Frequent Visitor

Table with text measures

Hi all

 

I want to change the look of my table so each session is in one line, and one session is where both "Date" and "B" match.

Up to three A can be in one session

hlynurgudna_0-1644396311169.png

 

Here below you can see my desired output

 

YearMonthDayA1A2A3B
2022February1ALSVGZTO 23
2022February1JNP  23,I
2022February2ALSVGZTOJUCA23
2022February2AM-SLSTJOVE F4
2022February2JNP  23,I

 

The date, A and B all come from different data tables and my first guess was that I would need to create a new data table and somehow merge this all together there but I am not sure how to do it

 

Hopefully I made myself clear enough

 

Thanks in advance

2 ACCEPTED SOLUTIONS
serpiva64
Solution Sage
Solution Sage

Hi,

to obtain this

serpiva64_0-1644399063527.png

you have to group by

serpiva64_1-1644399143135.png

in the formula bar you obtain this row

= Table.Group(#"Changed Type", {"Merged", "B"}, {{"Count", each _, type table [Merged=nullable date, A=nullable text, B=nullable text]}})

You modify it this way

= Table.Group(#"Changed Type", {"Merged", "B"}, {{"Count", each [A], type list }})

at this point by clicking on Count

serpiva64_3-1644399464824.png

Expand to new rows

then split your Count column by delimiter

serpiva64_4-1644399530063.png

change the name of the columns 

and it is done

If this post is useful to help you to solve your issue consider giving the post a thumbs up and accepting it as a solution !

 

View solution in original post

Hi @hlynurgudna ,

 

You can do this using the CONCATANEX formula of dax that allows to make a concatenation of values in a column.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

7 REPLIES 7
v-henryk-mstf
Community Support
Community Support

Hi @hlynurgudna ,

 

Whether the advice given by @serpiva64  has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

serpiva64
Solution Sage
Solution Sage

Hi,

to obtain this

serpiva64_0-1644399063527.png

you have to group by

serpiva64_1-1644399143135.png

in the formula bar you obtain this row

= Table.Group(#"Changed Type", {"Merged", "B"}, {{"Count", each _, type table [Merged=nullable date, A=nullable text, B=nullable text]}})

You modify it this way

= Table.Group(#"Changed Type", {"Merged", "B"}, {{"Count", each [A], type list }})

at this point by clicking on Count

serpiva64_3-1644399464824.png

Expand to new rows

then split your Count column by delimiter

serpiva64_4-1644399530063.png

change the name of the columns 

and it is done

If this post is useful to help you to solve your issue consider giving the post a thumbs up and accepting it as a solution !

 

MFelix
Super User
Super User

Hi @hlynurgudna ,

 

Instead of using a table visualization have you tried using a matrix? Only question is regarding the A column you want it to show on different columns?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Yes my first try was to use matrix but the matrix becomes to big, more than 100 columns for different values of "A" when I for example choose a whole month, not just two days like in the example here above

Hi @hlynurgudna ,

 

Believe that you issue is regarding the A column where you have all those different values. What is the exact purpose of the presentation is to summarize the values that match into a single row?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Exactly, to show the values that match into a single row. 
I know that the problem here is that I have all these different values in column A, so I was thinking if it would be possible to create a measure that combines/groups all the letter codes when B and Date matches and use that as a value

Hi @hlynurgudna ,

 

You can do this using the CONCATANEX formula of dax that allows to make a concatenation of values in a column.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.