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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
JK-1
Helper I
Helper I

rows split, but merging response results within table -- happy it repeats

Is there a measure that would be able to perform the "overall" result in red, from the associated table data.

I would want it to be visual in the table, happy for the repeats, as having consolidated summary is useful when assessing.

 

thanks,

[Table]

CampaignNumberRespondedViewcampaign countcampaign&viewresponded type countview&responded type countoverall_show across all rows - merged result
10021Rep115/05/2025Agreed910021Agreed6Agreed 6Agreed 6, Disagreed 2, Incomplete 1
10021Rep218/05/2025Agreed910021Agreed6Agreed 6Agreed 6, Disagreed 2, Incomplete 1
10021Rep321/05/2025Agreed910021Agreed6Agreed 6Agreed 6, Disagreed 2, Incomplete 1
10021Rep421/05/2025Disagreed910021Disagreed2Disagreed 2Agreed 6, Disagreed 2, Incomplete 1
10021Rep526/05/2025Agreed910021Agreed6Agreed 6Agreed 6, Disagreed 2, Incomplete 1
10021Rep629/05/2025Agreed910021Agreed6Agreed 6Agreed 6, Disagreed 2, Incomplete 1
10021Rep730/05/2025Disagreed910021Disagreed2Disagreed 2Agreed 6, Disagreed 2, Incomplete 1
10021Rep830/05/2025Incomplete910021Incomplete1Incomplete 1Agreed 6, Disagreed 2, Incomplete 1
10021Rep930/05/2025Agreed910021Agreed6Agreed 6Agreed 6, Disagreed 2, Incomplete 1
12524Rep112/03/2025Disagreed112524Disagreed1Disagreed 1Disagreed 1
9931Rep125/01/2024Agreed29931Agreed1Agreed 1Agreed 1, Incomplete 1
9931Rep227/01/2024Incomplete29931Incomplete1Incomplete 1Agreed 1, Incomplete 1
1 ACCEPTED SOLUTION
Nasif_Azam
Super User
Super User

Hey @JK-1 ,

Yes, you can create a measure in Power BI that replicates the behavior of the “overall_show across all rows merged result” column (in red) i.e., generating a consolidated summary of counts (Agreed, Disagreed, Incomplete) within the same campaign, and repeating it across all relevant rows for visual consistency.

Objective

You want a DAX measure that:

  • Groups responses by type (Agreed, Disagreed, Incomplete) per Campaign

  • Shows the aggregated count per type

  • Repeats the result across each row of the campaign — not at the visual total level only

DAX Measure

Campaign Response Summary = 
VAR CurrentCampaign = SELECTEDVALUE('Table'[Campaign])
RETURN
CALCULATE (
    CONCATENATEX (
        VALUES('Table'[View]),
        'Table'[View] & " " & 
        CALCULATE(COUNTROWS('Table')),
        ", ",
        'Table'[View], 
        ASC
    ),
    ALLEXCEPT('Table', 'Table'[Campaign])
)

 

For Detailed Information:

Power BI: Repeating Aggregated Values in a Table Visual

DAX Patterns: Distinct Count per Group

 

If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


Best Regards,
Nasif Azam

View solution in original post

7 REPLIES 7
maruthisp
Super User
Super User

Hi JK-1 ,

Please find the below attached pbix file with a solution as per your original post.
rows split.pbix

 

Please let me know if you have any further questions or need clarifications.

 

If this reply helped solve your problem, please consider clicking "Accept as Solution" so others can benefit too. And if you found it useful, a quick "Kudos" is always appreciated, thanks! 

 

Best Regards, 

Maruthi 

LinkedIn - http://www.linkedin.com/in/maruthi-siva-prasad/ 

X            -  Maruthi Siva Prasad - (@MaruthiSP) / X

Thank you both. Its been very useful - have attempted to bring the number to the front instead but not been successful in re-writing this. Tried going through the steps and following the suggested prompts in DAX and struggling. If there's a prompt you can offer to guide on that would be great. Kind regards

@maruthisp @Nasif_Azam 

I did find https://community.fabric.microsoft.com/t5/Developer/ConcatenateX-with-text-and-counts/m-p/1060149 but haven't yet cracked out the allexcept to be in the measure yet without erroring

Nasif_Azam
Super User
Super User

Hey @JK-1 ,

Yes, you can create a measure in Power BI that replicates the behavior of the “overall_show across all rows merged result” column (in red) i.e., generating a consolidated summary of counts (Agreed, Disagreed, Incomplete) within the same campaign, and repeating it across all relevant rows for visual consistency.

Objective

You want a DAX measure that:

  • Groups responses by type (Agreed, Disagreed, Incomplete) per Campaign

  • Shows the aggregated count per type

  • Repeats the result across each row of the campaign — not at the visual total level only

DAX Measure

Campaign Response Summary = 
VAR CurrentCampaign = SELECTEDVALUE('Table'[Campaign])
RETURN
CALCULATE (
    CONCATENATEX (
        VALUES('Table'[View]),
        'Table'[View] & " " & 
        CALCULATE(COUNTROWS('Table')),
        ", ",
        'Table'[View], 
        ASC
    ),
    ALLEXCEPT('Table', 'Table'[Campaign])
)

 

For Detailed Information:

Power BI: Repeating Aggregated Values in a Table Visual

DAX Patterns: Distinct Count per Group

 

If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


Best Regards,
Nasif Azam

The above has been very useful but am struggling to adapt it elsewhere. Should CONCAT work in the scenario below? There isn't a need for any count this time. Its just to bring the strings together from across 2 columns.

 

    {happy it purely groups or repeats - but it would be text rather than any counts} 
StoreLevel 1Level 2   
12423 consents  23 consents // 13 calls 
124 13 calls 23 consents // 13 calls 
1467 no-shows  7 no-shows // 6 accepted 
146 6 accepted 7 no-shows // 6 accepted 
159 14 declined  // 14 declined{or  purely} 14 declined

 

I did this as 2 separate measures and then just combined concat1 & concat2 but have lots of spare // throughout. Wanted to keep it within DAX though with a shorter method?

 

concat1 = concatenatex(filter(table,table[store]=earlier(table[store])),table[level 1], " // ",table[level 1],asc)

 .. repeat for level 2 then combined

 

thanks for original pointer via @hnguy71

Thank you. Always amazed 👍

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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