Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi I have cost column values from 0 to 4500000. i need to create Y axis range like below with interval of 100000. Please advise how can i do it in power BI Bar chart. Thank you.
Y axis should be like 0 to 100000, 100000 to 200000, 200000 to 300000 and so on 4000000 to 4100000.
Solved! Go to Solution.
Hi @Nazia786,
You can add a calculated column to calculate with raw value rate and store it in a variable, then you can use this to dynamic define the group range based on the variable.
For the end part of the ranges that not similar to other common calculations, you can add if statements to check these excepted scenarios and write specific expressions to handle them.
Below is the sample formula, you can try it if helps:
Dynamic range =
VAR _unit = 10
VAR _rate =
INT ( DIVIDE ( [Amount], _unit ) )
RETURN
IF ( _rate >= 40, "400 to 410", _rate * _unit & " to " & ( _rate + 1 ) * _unit )
Regards,
Xiaoxin Sheng
Hi @Nazia786,
You can add a calculated column to calculate with raw value rate and store it in a variable, then you can use this to dynamic define the group range based on the variable.
For the end part of the ranges that not similar to other common calculations, you can add if statements to check these excepted scenarios and write specific expressions to handle them.
Below is the sample formula, you can try it if helps:
Dynamic range =
VAR _unit = 10
VAR _rate =
INT ( DIVIDE ( [Amount], _unit ) )
RETURN
IF ( _rate >= 40, "400 to 410", _rate * _unit & " to " & ( _rate + 1 ) * _unit )
Regards,
Xiaoxin Sheng
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |