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.
Hi,
I would like to know if it is possible to select a measure from a field parameter and besides changing the line chart to the selected measure values to also alter the difference chart (with the same slicer)
If I use the field parameter in the difference chart it would only have the absolute measure and not the YoY that should be displayed in the difference chart
Any thoughts?
Solved! Go to Solution.
Hi @bi_trax87
If your measure parameters are all comparative, such as selecting both this year and last year, you may want to consider creating a measure and subtracting either this year or last year from the parameters, you can refer to the following sample.
Sample measures.
The paramater order.
Create a measure, then put the measure to the column chart visual
MEASURE =
IF (
ISFILTERED ( Parameter[Parameter Fields] ),
SWITCH (
TRUE (),
MAX ( Parameter[Parameter Order] ) IN { 0, 1 }, [TotalSales] - [TotalSalesLY],
MAX ( Parameter[Parameter Order] ) IN { 2, 3 }, [TotalSales34] - [TotalSales34LY]
)
)
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @bi_trax87
If your measure parameters are all comparative, such as selecting both this year and last year, you may want to consider creating a measure and subtracting either this year or last year from the parameters, you can refer to the following sample.
Sample measures.
The paramater order.
Create a measure, then put the measure to the column chart visual
MEASURE =
IF (
ISFILTERED ( Parameter[Parameter Fields] ),
SWITCH (
TRUE (),
MAX ( Parameter[Parameter Order] ) IN { 0, 1 }, [TotalSales] - [TotalSalesLY],
MAX ( Parameter[Parameter Order] ) IN { 2, 3 }, [TotalSales34] - [TotalSales34LY]
)
)
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks a million!
I believe UX wise it is not ideal to select what you want in pairs (i.e. Current Year & Previous Year)
However in a scenario where you have Current Year vs Budget/Forecast/Target where Current year is always the same and you compare vs a field parameter this would be amazing
Thanks again
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 |
---|---|
57 | |
55 | |
55 | |
37 | |
30 |
User | Count |
---|---|
78 | |
66 | |
45 | |
44 | |
40 |