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
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
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.