Forum Discussion
summarize table using direct query based on slicer isn't working
- Anonymous2 years ago
amitchandak Thanks for your contribution on this thread.
Hi Laiq_Rahman ,
As amitchandak says, the data in the calculated table will not be changed by the user interactions(filter, slicer and so on). You can follow the steps below to get it:
1. Create a measure as below
Flag = VAR st_date = MIN ( DIM_DATE[CALENDAR_DATE_SHORT_NAME] ) VAR en_date = MAX ( DIM_DATE[CALENDAR_DATE_SHORT_NAME] ) VAR idate = SELECTEDVALUE ( FACT_BID_PER_OFFER[INTERVAL_DATE] ) RETURN IF ( idate >= st_date && idate < en_date, 1, 0 )2. Create a table visual with the necessary fields in the table 'FACT_BID_PER_OFFER' (include the field [INTERVAL_DATE]) and apply a visual-level filter with the condition (Flag is 1)
If the above ones can't help you figure out, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And it is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
- 2 years ago
Hi,
I removed the date relationship as shown above on my screenshot. I've added start date and end date parameter. Then bind those parameters to work from power query.
So, no more date column on my output. Whenever user select the dates then a direct query runs with those dates instead of doing summarize table. This works to some extent.
Another issue, when i use parameter on the slicer then it doesn't let me to use the generic date slicer settings like between, relative options but that's a different issue which i need to think about how to resolve this.
Thanks guys.
amitchandak Thanks for your contribution on this thread.
Hi Laiq_Rahman ,
As amitchandak says, the data in the calculated table will not be changed by the user interactions(filter, slicer and so on). You can follow the steps below to get it:
1. Create a measure as below
Flag =
VAR st_date =
MIN ( DIM_DATE[CALENDAR_DATE_SHORT_NAME] )
VAR en_date =
MAX ( DIM_DATE[CALENDAR_DATE_SHORT_NAME] )
VAR idate =
SELECTEDVALUE ( FACT_BID_PER_OFFER[INTERVAL_DATE] )
RETURN
IF ( idate >= st_date && idate < en_date, 1, 0 )
2. Create a table visual with the necessary fields in the table 'FACT_BID_PER_OFFER' (include the field [INTERVAL_DATE]) and apply a visual-level filter with the condition (Flag is 1)
If the above ones can't help you figure out, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And it is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards