Forum Discussion
Link Measures to a Column
- 1 year ago
Hi Anonymous
You will need to create a measure that switches according to the row value from a disconnected table column
For example,
SWITCH ( SELECTEDVALUE ( 'metrics'[metrics name] ), "Sales", [Sales Measure], "Volume", [Volume Measure], "ATV", DIVIDE ( [Sales Measure], [Volume Measure] ) )Even if there isn't a relationship between metrics and other tables, the measures should still return the correct value as they're calculation is essentially being affected by the other tables.
- 1 year ago
Hi Anonymous,
Thank you for reaching out to the Microsoft Fabric Community forum.As you mentioned, 17 measures are derived from multiple calculations and tried to create a calculated column that switches between each column which doesn’t work.
Yes, it doesn’t work because the issue here is that calculated columns cannot hold or switch between measures as measures are evaluated dynamically when you interact with a visual. By using calculated columns, it cannot hold multiple measure values. This is why the approach of creating a calculated column to link measures to the 'Physical Flow' column is not working.
Instead of using a calculated column, we can create a separate Mapping Table which link each measure to its respective category. This table will act as a bridge to organize the measures properly. After that we can build dynamic measures in Power BI that will show the correct values for each category without duplications. This method ensures accurate results in your reports.
If this post helps, please give us Kudos and consider Accept it as a solution to help the other members find it more easily.
Best Regards,
Sahasra.
Hi Anonymous,
May I ask if you have gotten this issue resolved?
If it is clear, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.
Best Regards,
Sahasra.
- v-sgandrathi1 year ago
Community Support
Hi Anonymous,
we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.
If our response addressed by the community member for your query, please mark it as Accept Answer and click Yes if you found it helpful.
Should you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!- v-sgandrathi1 year ago
Community Support
Hi Anonymous,
Since we haven't heard back from you yet, I'd like to confirm if you've successfully resolved this issue or if you need further help?
If you've already resolved the issue, you can mark the helpful reply as a "solution" so others know that the question has been answered and help other people in the community. Thank you again for your cooperation!Regards,
Sahasra.