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
Wicak
Helper I
Helper I

call header coloumn name with coloumn value

Wicak_1-1645590042656.png

i have a problem calling the names of sku coloumns into one coloumn, based on the value every day. have any suggestion? Thanks 😊

 

 

1 ACCEPTED SOLUTION
Wicak
Helper I
Helper I

Thanks, 

 its works. but i didn't use SUM because the result was an error  

SKU Run = 
SWITCH(
    TRUE(),
    NOT(ISBLANK('Sample Table'[SKU A])),"SKU A",
    NOT(ISBLANK('Sample Table'[SKU B])),"SKU B",
    NOT(ISBLANK('Sample Table'[SKU C])),"SKU C",
    NOT(ISBLANK('Sample Table'[SKU D])),"SKU D",
    BLANK()
)

 

View solution in original post

4 REPLIES 4
Wicak
Helper I
Helper I

Thanks, 

 its works. but i didn't use SUM because the result was an error  

SKU Run = 
SWITCH(
    TRUE(),
    NOT(ISBLANK('Sample Table'[SKU A])),"SKU A",
    NOT(ISBLANK('Sample Table'[SKU B])),"SKU B",
    NOT(ISBLANK('Sample Table'[SKU C])),"SKU C",
    NOT(ISBLANK('Sample Table'[SKU D])),"SKU D",
    BLANK()
)

 

Anonymous
Not applicable

Hi Wicak, can you tell what error you are facing?

Wicak_0-1645607492927.png

Sory,

There seems to be a value model in a row that has its own value. so SUM can't work

Wicak_1-1645607913787.png

 

Anonymous
Not applicable

Hi @Wicak ,
You can use a calculated measure like this

 

SKU Run = 
SWITCH(
    TRUE(),
    NOT(ISBLANK(SUM('Sample Table'[SKU A]))),"SKU A",
    NOT(ISBLANK(SUM('Sample Table'[SKU B]))),"SKU B",
    NOT(ISBLANK(SUM('Sample Table'[SKU C]))),"SKU C",
    NOT(ISBLANK(SUM('Sample Table'[SKU D]))),"SKU D",
    BLANK()
)

 

Then pull this measure into the table or matrix.

The output looks like this

Aditya_Meshram_0-1645595729727.png

Regards,

Aditya

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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