Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I am trying to create a measure that performs a calculation but adds together the value of the measure when multiple options are selected in the slicer instead of adding everything together. So for example if person 1 and person 2 are selected in one slicer and October and November are selected in another slicer, I want:
number of hours for person 1 * average % for person 1 for October
+ number of hours for person 1 * average % for person 1 for November
+ number of hours for person 2 * average % for person 2 for October
+ number of hours for person 2 * average % for person 2 for November,
instead of number of hours for October and November and person 1 and person 2 * average % for October and November and person 1 and person 2. I have already have a measure that will separate out the months selected in a slicer, but when I select multiple people from another slicer it is then totals the number of hours for person 1 & person 2 * average % for person 1 and person 2. Is there a way to add in the person selection as well as the month selection.
This is the measure I already have for the calculation to add the invidual months together is:
Solved! Go to Solution.
I think you can use
My Measure =
SUMX (
SUMMARIZE ( Table1, Table1[WeekCommencing].[Month], Table1[TeamMember] ),
CALCULATE ( SUM ( 'TABLE2'[Hours] ) * AVERAGE ( 'TABLE1'[Budget %] ) )
)
I think you can use
My Measure =
SUMX (
SUMMARIZE ( Table1, Table1[WeekCommencing].[Month], Table1[TeamMember] ),
CALCULATE ( SUM ( 'TABLE2'[Hours] ) * AVERAGE ( 'TABLE1'[Budget %] ) )
)
That's worked great, thanks
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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |