Forum Discussion

mnemolu's avatar
mnemolu
Frequent Visitor
2 years ago
Solved

ADDCOLUMNS: adding a new column with SELECTEDVALUE, get empty

This is the DAX used for creating the table: -------------- result_table = var users = VALUES('fact_table'[user_id]) var add_col = ADDCOLUMNS( users, "selected_question" , CALCULATE(...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi mnemolu ,

    The calculated column or calculated table will not change according to the user interaction(slicer, filter, column selections etc.) in the report as the value of a calculated column/table is computed during data refresh and uses the current row as a context... Please review the following links about the difference of calculated column and measure...

    Calculated Columns and Measures in DAX

    Calculated Columns vs Measures

    That's why you got the value "No selection" in the field [selected_question]...

     

    Could you please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with special examples and screenshots? Later I will check if there is any workaround to achieve your requirement. You can refer the following link to share the required info:

    How to provide sample data in the Power BI Forum

     

    And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards