Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have created field parameters for 3 units. However, I want only the Million metric tons to show 4 to 5 decimal places and the other units to be whole numbers. Is there a way to fix this?
Solved! Go to Solution.
Hi @DAX_pbi_learner ,
I made simple samples and you can check the results below:
Replace Value = var _s = SELECTEDVALUE('Parameter'[Parameter Order])
RETURN SWITCH(TRUE(),_s=0,ROUNDUP(MAX('Table'[Category1]),0),
_s=1,ROUNDUP(MAX('Table'[Category2]),0),
_s=2,MAX('Table'[Category3]))
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
hello, thank you for the solution...do you know how this would work with measures?
Hi @DAX_pbi_learner ,
Maybe I didn't understand your need, I created a measure for Value based on the parameter's serial number, isn't that what you want?
Best regards,
Community Support Team_ Scott Chang
Hi @DAX_pbi_learner ,
I made simple samples and you can check the results below:
Replace Value = var _s = SELECTEDVALUE('Parameter'[Parameter Order])
RETURN SWITCH(TRUE(),_s=0,ROUNDUP(MAX('Table'[Category1]),0),
_s=1,ROUNDUP(MAX('Table'[Category2]),0),
_s=2,MAX('Table'[Category3]))
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |