Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I'm developing an RFM-themed BI dashboard using member master data as the primary data source.
The RFM scoring is based on custom values with rolling calculations:
I want to calculate member count and member count percentage by RFM segments, but since both RFM scores and RFM segments are measures, I cannot use them as dimensions in a matrix.
I initially tried to add RFM scores and RFM segments as calculated columns in the member master table, but I discovered that What-If Parameter values cannot be referenced in calculated columns.
I will provide screenshots of my BI dashboard and the measures I'm using. Could experts please help me find a solution to:
Thank you for your assistance!
Solved! Go to Solution.
Hi @HancyChang ,
Thank you for reaching out to us on Microsoft Fabric Community Forum!
You're correct that measures cannot be used as dimensions in a matrix visual, which makes it challenging to summarize counts by RFM segment dynamically when using What-If Parameters.To create a dynamic summary matrix with member count and percentage by RFM segment, while still using What-If Parameters, here is a suggested workaround using disconnected RFM segment tables and supporting measures.
Please find the below steps.
1.After loading data into power bi,create 3 parameters.
RecencyThreshold: Whole Number, Min = 0, Max = 200, Increment = 10, Default = 90
FrequencyThreshold: Whole Number, Min = 0, Max = 20, Increment = 1, Default = 5
MonetaryThreshold: Whole Number, Min = 0, Max = 2000, Increment = 50, Default = 500
Adds slicers for your Parameters.
2.Create RFM Segment Measure using below:
4.Create 2 mesaures Member Count and % Measures.
Member Count =
CALCULATE(
COUNTROWS('MemberMaster'),
FILTER('MemberMaster', [RFM Segment] = SELECTEDVALUE(RFMSegments[Segment]))
)
Member % =
DIVIDE(
[Member Count],
CALCULATE(COUNTROWS('MemberMaster')),
0
)
5.Add a matrix visual.In rows, add RFMSegments[Segment]. In values, add [Member Count], [Member %].
Please refer the attached screenshot and file for your reference:
I hope this helps.If so,give us kudos and consider accepting it as solution.
Thank you.
Regards,
Pallavi.
Hi @HancyChang ,
Thank you for reaching out to us on Microsoft Fabric Community Forum!
You're correct that measures cannot be used as dimensions in a matrix visual, which makes it challenging to summarize counts by RFM segment dynamically when using What-If Parameters.To create a dynamic summary matrix with member count and percentage by RFM segment, while still using What-If Parameters, here is a suggested workaround using disconnected RFM segment tables and supporting measures.
Please find the below steps.
1.After loading data into power bi,create 3 parameters.
RecencyThreshold: Whole Number, Min = 0, Max = 200, Increment = 10, Default = 90
FrequencyThreshold: Whole Number, Min = 0, Max = 20, Increment = 1, Default = 5
MonetaryThreshold: Whole Number, Min = 0, Max = 2000, Increment = 50, Default = 500
Adds slicers for your Parameters.
2.Create RFM Segment Measure using below:
4.Create 2 mesaures Member Count and % Measures.
Member Count =
CALCULATE(
COUNTROWS('MemberMaster'),
FILTER('MemberMaster', [RFM Segment] = SELECTEDVALUE(RFMSegments[Segment]))
)
Member % =
DIVIDE(
[Member Count],
CALCULATE(COUNTROWS('MemberMaster')),
0
)
5.Add a matrix visual.In rows, add RFMSegments[Segment]. In values, add [Member Count], [Member %].
Please refer the attached screenshot and file for your reference:
I hope this helps.If so,give us kudos and consider accepting it as solution.
Thank you.
Regards,
Pallavi.
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 42 | |
| 37 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 67 | |
| 58 | |
| 29 | |
| 27 | |
| 25 |