Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Solved! Go to Solution.
Hi @ruthgammack
Try this:
Buffer Kms =
IF (
'Co-ordinate'[Kms] = 0,
20,
SWITCH (
TRUE (),
( 'Co-ordinate'[Mode] = "Air" ),
'Co-ordinate'[Kms] / 100 * 22,
( 'Co-ordinate'[Mode] = "Sea" ),
'Co-ordinate'[Kms] / 100 * 24,
( 'Co-ordinate'[Mode] = "Roa" ),
'Co-ordinate'[Kms] / 100 * 18,
( 'Co-ordinate'[Mode] = "Rai" ),
'Co-ordinate'[Kms] / 100 * 9,
( 'Co-ordinate'[Mode] = "Cou" ),
'Co-ordinate'[Kms] / 100 * 22
)
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos✌️!!
I have refering url column under which urls listed like below
google.com
facebook.com
instagram.com
linkedin.com
i want ad need column which lists respective urls
how can i do
Hi @ruthgammack
Try this:
Buffer Kms =
IF (
'Co-ordinate'[Kms] = 0,
20,
SWITCH (
TRUE (),
( 'Co-ordinate'[Mode] = "Air" ),
'Co-ordinate'[Kms] / 100 * 22,
( 'Co-ordinate'[Mode] = "Sea" ),
'Co-ordinate'[Kms] / 100 * 24,
( 'Co-ordinate'[Mode] = "Roa" ),
'Co-ordinate'[Kms] / 100 * 18,
( 'Co-ordinate'[Mode] = "Rai" ),
'Co-ordinate'[Kms] / 100 * 9,
( 'Co-ordinate'[Mode] = "Cou" ),
'Co-ordinate'[Kms] / 100 * 22
)
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos✌️!!
unfortunately it doesnt work. ill keep trying
The last condition must be the first. It really does matter what you put where in switch.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
8 |