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 want to have variable value fields in column chart instead of fixing them. For example, I have overtime data of cost and hrs.
I want to create ONE single clustered column chart where month should be in x-axis (fixed) and in values area I want variable values.
Like if I click on a button / slicer for overtime cost, the column chart should give me cost and if I select overtime Hrs, i t should show Hrs.
ONE CHART FOR TWO FIELDS (COST & HRS)
Please see my sample data and advise.
https://www.dropbox.com/sh/1zrdlchzcfmwzcs/AADAvy5zk9ifpzzFnImEVHfEa?dl=0
Regards,
Imran
Solved! Go to Solution.
Hi, @Anonymous
You may create a table and a measure as below.
Table:
Measure:
Result =
IF(
ISFILTERED('Table'[Category]),
IF(
SELECTEDVALUE('Table'[Category])="Cost",
SUM(Overtime[Overtime Cost]),
IF(
SELECTEDVALUE('Table'[Category])="Hrs",
SUM('Overtime'[Overtime Hrs])
)
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
You may create a table and a measure as below.
Table:
Measure:
Result =
IF(
ISFILTERED('Table'[Category]),
IF(
SELECTEDVALUE('Table'[Category])="Cost",
SUM(Overtime[Overtime Cost]),
IF(
SELECTEDVALUE('Table'[Category])="Hrs",
SUM('Overtime'[Overtime Hrs])
)
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Refer if this can help
I saw the post you share but actually this is not the case I am looking for. I need to have;
fix "x-axis" -- that is month, and;
variable "y-axis" --that is either cost or Hrs
Both cost and hrs are two seprate columns of my table. What is the solution of this problem.
Regards,
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 |
---|---|
114 | |
100 | |
75 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |