Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I'm working with a user trying to create a custom column (called "Nested Measure" below). This column should be populated based on the contents of the "PricePerUnit"... Each record's priceperunit matches a value in one of the BLOCK columns (there are 150 BLOCKs). We want to display the block number in the "Nested Measure" column (and we ultimately don't need the BLOCK columns visible on the report).
We've found some success with a DAX statement (below), but we know it's not a good maintanable solution as there are going to be too many IF statements (150) that I'm crashing PBI when I try to add too many statements.
Based on the information you've provided one possible solution is that the 150 blocks columns don't actually belong in that table and that you should create a separate "blocks" table with 150 rows.
So you would have a structure like the following:
BlockSize BlockPrice
103 1.96
107 2.00
111 2.05
Then you could simply join on Price and BlockPrice to find the BlockSize without doing any IF statements.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |