- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Table Return Values Based on 2 Criteria(dates)
Im trying to create a dynamic table, that returns a value based on the slicer selection. In a scenario, I want to show what were the projected sales number from previous 4 weeks, to see the change in numbers. Slicer selection = Current date in table
The return value is also based on the slicer selection, and the date version. And the data will change based on the slicer, while the rows in the table is essentially D-7, D-14, D-21, D-28 (previous weeks). Seems quite a complicated task to do in PBI.
I tried using SELECTEDVALUE, but I think it didnt work. Im attaching a saple of data and what it supposed to look and work as a dashboard in excel
Uploaded a sample of the file
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Create a switch measure as below,
Days =
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi,
I have solved a similar problem in the attached PBI files.
Hope this helps.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Create a switch measure as below,
Days =
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi Bmejia, could you share your PBI file as well? Im having difficulties in getting the correct format to show the table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Sorry, I am not able to upload files like others in the forum
Maybe this will make more sense.
1st just add a table and add your fields Input Week, Project Sales. (This will show everything)
2nd Add a dropdown filter and add the Sales Week field
3rd Create measure above and add to table
4th go to the filter pane and look for days and filter by “is not” 0 (as print screen above).
5th you should only be able to see the date ranges 7,14,28 etc.. every time you filter by Sales Week selected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

That worked a treat. Thanks so much!

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
08-02-2024 11:49 AM | |||
11-13-2023 10:26 PM | |||
07-02-2024 07:09 AM | |||
02-17-2024 11:15 AM | |||
08-09-2023 12:50 AM |
User | Count |
---|---|
113 | |
89 | |
84 | |
54 | |
46 |