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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

CONCAT in a measure which should behave like a column

Hi all,

 

I have a transactionID that I have split up in two parts for memory reasons (very high cardinality). See here: Optimizing High Cardinality Columns in VertiPaq - SQLBI

 

Now in Desktop I am trying to bring these two parts together again in a measure (not in a calculated measure as that would use memory again). According to the example this is possible with (although I have used SELECTEDVALUE instead of VALUES):

 

VALUES( Fact[TransactionHighID] ) * 10000 + VALUES( Fact[TransactionLowID] )

 

 

However, it does not behave as I would like it to be. What I want if I create a table visual is that I get a row for every unique value of the TransactionID.

E.g.:

ColorTransactionID
Blue13345678
Blue12845679
Yellow16345666
Yellow17895699

 

But what I get is an empty table visual.

2 REPLIES 2
Sahir_Maharaj
Super User
Super User

Hello @Anonymous,

 

Can you please try creating a new table in Power BI to help achieve this:

UniqueTransactionTable = 
    SUMMARIZE(
        'Fact',
        'Fact'[Color],
        'Fact'[TransactionHighID],
        'Fact'[TransactionLowID],
        "TransactionID", 'Fact'[TransactionHighID] * 10000 + 'Fact'[TransactionLowID]
    )

Let me know if you might require my further input.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ About: https://sahirmaharaj.com/about.html
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning
Anonymous
Not applicable

Thank you for your reply, @Sahir_Maharaj .

 

Unfortunately creating a new table with SUMMARIZE saves the new table in memory again, so this does not solve my primary problem of having a semantic model that is too big (in GB) due to the high cardinality of the transactionID column.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.