Forum Discussion
cathoms
4 years agoResponsive Resident
Creating new table: Too many rows error
Hi. I'm trying to create a new table for use in a dynamic legend slicer and am getting the following error: "<pi>The resultset of a query to external data source has exceeded the maximums allowed siz...
- 4 years ago
cathoms you are using DQ and the intermediate result exceeding the 1M rows.
I guess patientdim has a lot of rows.
Maybe try to change the code to:LegendCategories = UNION ( SELECTCOLUMNS ( VALUES ( PatientDim[RaceCategory1] ), "Category", PatientDim[RaceCategory1], "Field", "Race Category" ), SELECTCOLUMNS ( VALUES ( PatientDim[RaceCategory2] ), "Category", PatientDim[RaceCategory2], "Field", "Race" ), SELECTCOLUMNS ( VALUES ( PatientDim[Sex] ), "Category", PatientDim[Sex], "Field", "Sex" ), SELECTCOLUMNS ( VALUES ( CovidVaccinationStatusFact[AgeGroup 1] ), "Category", CovidVaccinationStatusFact[AgeGroup 1], "Field", "Age Group" ), SELECTCOLUMNS ( VALUES ( CovidVaccinationStatusFact[CovidVaccinated] ), "Category", CovidVaccinationStatusFact[CovidVaccinated], "Field", "Vaccination Status" ), SELECTCOLUMNS ( VALUES ( CovidVaccinationStatusFact[Booster] ), "Category", CovidVaccinationStatusFact[Booster], "Field", "Booster Status" ) )
cathoms
4 years agoResponsive Resident
Oh, great idea! Works perfectly, thanks!
SpartaBI
4 years agoCommunity Champion
cathoms my pleasure 🙂
Hey, check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas.
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up over there if you liked it 🙂