Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi,
I have a table siilar to below -
| Source | Year | county | school | Reponse | Total surveys |
| Hight School | 2018 | As | asdf | High Positive | 20 |
| Hight School | 2018 | As | asdf | Positive | 20 |
| Hight School | 2018 | As | asdf | Negative | 20 |
| Hight School | 2018 | Ad | grew | High Positive | 43 |
| Hight School | 2018 | Ad | grew | Positive | 43 |
| Hight School | 2018 | Ad | grew | Negative | 43 |
| Elementary | 2018 | Ad | grew | High Positive | 43 |
| Elementary | 2018 | Ad | grew | Positive | 43 |
| Elementary | 2018 | Ad | grew | Negative | 43 |
| Elementary | 2018 | As | asdf | High Positive | 20 |
| Elementary | 2018 | As | asdf | Positive | 20 |
| Elementary | 2018 | As | asdf | Negative | 20 |
When I am trying to sum the Total Surveys, it is summing up all the numbers in Total surveys column, I have slicers in my report for Source, year, School name, Response based on slicer selection, the sum should consider one total survey as total surveys are repetitive.
Any pointers are highly appreciated
Regards,
Rohith
Solved! Go to Solution.
So, you will probably need a measure like:
Measure =
SUMX(SUMMARIZE('Table',[Source],[Year],[county],[school],"__total",AVERAGE([Total surveys])),[__total])
The measure above seems to work. Here is a similar post for your reference.
So, you will probably need a measure like:
Measure =
SUMX(SUMMARIZE('Table',[Source],[Year],[county],[school],"__total",AVERAGE([Total surveys])),[__total])
Thanks for the reply Greg.
Here is my expected output:
By default the sum should be 20+43+20+43=126
If i select Highschool in my Source slicer, the result should be 20+43 =63
If i select Highschool and the County as AS, the result should be 20
If i select County as AS, the result should be 20(High School)+20(Elementary) = 40
and so on...
@RohithGn Please post your expected output as well.
Proud to be a PBI Community Champion
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 47 | |
| 44 | |
| 20 | |
| 20 |
| User | Count |
|---|---|
| 72 | |
| 70 | |
| 34 | |
| 33 | |
| 31 |