query string
4 TopicsHow to exclude one field from summarize columns but still include it in the query
Hi, I had to introduce the field [PlannedMigrationDay] in my query for the paginated report for the sole purpose of filtering the paginated report. This is the query: /* START QUERY BUILDER */ EVALUATE SUMMARIZECOLUMNS( UserResponse[Batch], UserResponse[Response], UserResponse[PlannedMigrationDay], KEEPFILTERS( TREATAS( {"2"}, UserResponse[TenantID] )), KEEPFILTERS( TREATAS( {"4"}, UserResponse[QuestionID] )), "Responses", [Responses], "Responses %", [Responses %], "T-14", [T-14] ) /* END QUERY BUILDER */ Now I have one problem: when I have two different migration dates, my results are summarized by the date of migration whereas before they were aggregated by distinct values. I don't want my results to be aggregated by [PlannedMigrationDay]. How can I modify the query to avoid that, but still have that field in the dataset of my paginated report? Thanks in advance for the help! ~AlienvolmSolved3.7KViews0likes4CommentsQuick Measure: Incorrect YOY calculation - handling negatives
Hello, YOY quick measure in Power BI results incorrect calculation when previous year data is negative or vice versa. Following quick measure formula results a negative 217% YOY where previous year value is minus 463 and current year value is plus 541. YTD_Total Sales Gross YoY% = VAR __PREV_YEAR = CALCULATE( SUM('Append1'[YTD_Total Sales Gross]), DATEADD('Date_Key'[Date], -1, YEAR) ) RETURN DIVIDE(SUM('Append1'[YTD_Total Sales Gross]) - __PREV_YEAR, __PREV_YEAR) Is there a way to edit the quick measure to add ABS? I'd prefer not create seperate measures for each metric we are tracking and calculate the YOY for each. It will be a very tedious workaround. Thanks, PetekSolved3.3KViews0likes4Comments