- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I have got Mass of some items in both kg & lbs, I wanted to create a 'Mass UoM' field for filters
Mass in Kg and Lbs is present in two separate columns. The Mass UoM filter should give user freedem to choose between Kg and Lbs so that further I can create a measure to display selected unit of mass only.
What logic should I apply to get this new calculated column?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous
You could accomplish this in either of two ways.
First, you could create a disconnected table that has "Kilograms (Kg)" and "Pounds (Lbs)" as its entries. Stick a slicer on the page with those values as the options. Then write a measure that is a SWITCH statement for SELECTEDVALUE() of that table. And use that measure in your visualizations. This is the way you used to have to do this kind of thing.
OR...and I believe this will be much easier...look into field parameters. They are in preview (last I heard) and I've never used them, but from what you said, they will probably get you where you want to be. And should be easier to implement.
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous ,
You may consider using field parameters. You can parameterize the two fields here:
You can switch fields (axes/measures) at will. It is very useful!
The PBIX file is attached for reference.
Reference:
Let report readers use field parameters to change visuals (preview)
Best Regards,
changqing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous ,
You may consider using field parameters. You can parameterize the two fields here:
You can switch fields (axes/measures) at will. It is very useful!
The PBIX file is attached for reference.
Reference:
Let report readers use field parameters to change visuals (preview)
Best Regards,
changqing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous
You could accomplish this in either of two ways.
First, you could create a disconnected table that has "Kilograms (Kg)" and "Pounds (Lbs)" as its entries. Stick a slicer on the page with those values as the options. Then write a measure that is a SWITCH statement for SELECTEDVALUE() of that table. And use that measure in your visualizations. This is the way you used to have to do this kind of thing.
OR...and I believe this will be much easier...look into field parameters. They are in preview (last I heard) and I've never used them, but from what you said, they will probably get you where you want to be. And should be easier to implement.
Hope this helps!

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
08-28-2024 08:14 PM | |||
09-18-2024 04:08 AM | |||
08-09-2024 12:15 AM | |||
08-04-2022 11:45 AM | |||
11-21-2023 07:11 PM |
User | Count |
---|---|
136 | |
107 | |
88 | |
58 | |
46 |