Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi Experts
is it possible to use a Measure as a slicer in a Power BI report or how to convert a measure into a slicer in a Power Bi report
My Measure.
_MeasureSelector = DATATABLE(
"Measure", STRING,
"Sort Order", INTEGER,
{
{"Actuals", 1},
{"Current Forecast", 2},
{"Budgets", 3},
{"Budgets vs Forecasts", 4},
{"YTD Actuals", 5},
{"YTD Budgets", 6},
{"YTD Variance", 7},
{"YTD Variance %", 8},
{"Selected Month Actuals", 9},
{"Selected Month Budgets", 10},
{"Selected Month Actuals vs Budgets", 11},
{"Selected Month Variance %", 12},
{"Previous Forecast for Selected Month", 13},
{"Forecast vs Selected Month Actuals", 14},
{"Full Year Forecast", 15},
{"Full Year Budget", 16},
{"Full Year Budget vs Forecast", 17},
{"Full Year Forecast Variance to Budget %", 18},
{"Run Rate", 19},
{"Forecast vs Run Rate", 20},
{"Forecast to Run Rate Variance %", 21}
}
)
Solved! Go to Solution.
Hi, @WhaleWatcher222
You need to create a calculation table
MeasureSelectorTable = DATATABLE(
"Measure", STRING,
"Sort Order", INTEGER,
{
{"Actuals", 1},
{"Current Forecast", 2},
{"Budgets", 3},
{"Budgets vs Forecasts", 4},
{"YTD Actuals", 5},
{"YTD Budgets", 6},
{"YTD Variance", 7},
{"YTD Variance %", 8},
{"Selected Month Actuals", 9},
{"Selected Month Budgets", 10},
{"Selected Month Actuals vs Budgets", 11},
{"Selected Month Variance %", 12},
{"Previous Forecast for Selected Month", 13},
{"Forecast vs Selected Month Actuals", 14},
{"Full Year Forecast", 15},
{"Full Year Budget", 16},
{"Full Year Budget vs Forecast", 17},
{"Full Year Forecast Variance to Budget %", 18},
{"Run Rate", 19},
{"Forecast vs Run Rate", 20},
{"Forecast to Run Rate Variance %", 21}
}
)
Then create a slicer.
Create a measure that uses the selected value from the slicer to determine which measure to display. Use the measure in your visuals to dynamically display the measure based on the slicer selection.
You can check the following links:
Solved: How to use a measure as slicer? - Microsoft Fabric Community
How to use a measure as Slicer? - PowerBI Talks
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @WhaleWatcher222
You need to create a calculation table
MeasureSelectorTable = DATATABLE(
"Measure", STRING,
"Sort Order", INTEGER,
{
{"Actuals", 1},
{"Current Forecast", 2},
{"Budgets", 3},
{"Budgets vs Forecasts", 4},
{"YTD Actuals", 5},
{"YTD Budgets", 6},
{"YTD Variance", 7},
{"YTD Variance %", 8},
{"Selected Month Actuals", 9},
{"Selected Month Budgets", 10},
{"Selected Month Actuals vs Budgets", 11},
{"Selected Month Variance %", 12},
{"Previous Forecast for Selected Month", 13},
{"Forecast vs Selected Month Actuals", 14},
{"Full Year Forecast", 15},
{"Full Year Budget", 16},
{"Full Year Budget vs Forecast", 17},
{"Full Year Forecast Variance to Budget %", 18},
{"Run Rate", 19},
{"Forecast vs Run Rate", 20},
{"Forecast to Run Rate Variance %", 21}
}
)
Then create a slicer.
Create a measure that uses the selected value from the slicer to determine which measure to display. Use the measure in your visuals to dynamically display the measure based on the slicer selection.
You can check the following links:
Solved: How to use a measure as slicer? - Microsoft Fabric Community
How to use a measure as Slicer? - PowerBI Talks
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@WhaleWatcher222 You can use Field Parameter where you don't need to convert into calculated column. Just drag and drop measures list and use it in slicer. Refer this blog.
https://www.sqlbi.com/articles/fields-parameters-in-power-bi/
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
105 | |
75 | |
43 | |
39 | |
32 |
User | Count |
---|---|
170 | |
90 | |
65 | |
46 | |
44 |