The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
I'm looking to create a range out of the values of Lower Limit Column
The data is laid out in two columns as shown in Current Data and the Expected outcome is below it.
Current Data:
Expected Outcome :
Thank you,
Hi,
You should ideally be creating this as a calculated column formula in the Table (not as a measure). Are you OK with my approach?
I tried this as Calculated column, range is not accurate. Check out my screenshot
If you are OK with my approach of creating a calculated column formula rather than a measure, then share the download link of the PBI file.
Range (calculated) =
var nextValue = CALCULATE(MIN('Table'[Range]), FILTER(ALL('Table'), 'Table'[Range] > EARLIER('Table'[Range])))
return IF(nextValue > 0,
'Table'[Range] & " - " & nextValue,
"> " & 'Table'[Range]
)
You can try something like the above
Thank you for your reply.
It does create a range but not accurate, here is my output.
Looks like the variable needs to be tied to the bucket column, so the range is locked to the adjacent bucket value.
User | Count |
---|---|
56 | |
54 | |
53 | |
47 | |
30 |
User | Count |
---|---|
173 | |
89 | |
70 | |
46 | |
45 |