- 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

Filter by column and dynamic average
Hello everyone,
i was not able to find a solution online to my query.
I have multiple trucks listed per licence plate and i have the days of the months numbered 1 through 31.
I want to add a slicer for the dates but they are column names and i am not sure how to do that. I need the selected date range to only show those selected date range and hide the others.
Once that is done a column should be added to calculate the average for that truck.
Is such an operation possible?
Thank you so much for your time.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @nicolasvahidzei
You need to unpivot your table from PQ ( The days must be on rows):
Change the column name for Day:
After closing and applying create the measure (not Calculated column) for the average :
And drag The vech, days and average to the matrix:
Add a slicer for days :
The pbix with the example is attached
Detailed guide to unpivot :
https://www.youtube.com/watch?v=tAIqopmj9RA&t=17s
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @nicolasvahidzei
You need to unpivot your table from PQ ( The days must be on rows):
Change the column name for Day:
After closing and applying create the measure (not Calculated column) for the average :
And drag The vech, days and average to the matrix:
Add a slicer for days :
The pbix with the example is attached
Detailed guide to unpivot :
https://www.youtube.com/watch?v=tAIqopmj9RA&t=17s
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you so much Rita, you are great. Do you freelance? Please send me a whatsapp or email nicolas zein (attached) at google gmail. Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi Nicolas,
1. Happy to help 🙂
2. I work at a project-based company, I'm not a freelancer. You can check my LinkedIn:
https://www.linkedin.com/in/rita-fainshtein/
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I added you, let's chat on linkedin.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
05-02-2024 04:29 PM | |||
04-26-2024 04:54 AM | |||
07-30-2024 05:40 PM | |||
01-31-2024 07:03 AM | |||
02-19-2024 09:58 AM |