Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
abhishek20_09
New Member

How to create Filed parameter with Date selection

Hi Folks,

I am new to power BI and got stuck with a requirement.

I have to create a customer service report which displays sum of interaction type(call,Email or Chat) and shows barchart and tabular chart with the data. 

The condition is the data should be filtered by the dynamic slicer. Values are - LastYear, Last month, last qt, last week and yesterday.

When we select LastYear, the viz should show all 12 months of data of last year.

When we select Lastquarter, the viz should display last quarter's 3 months of data(April-june)

LastMonth- Displays last month of data(June)

Last week - Last week of data

Yesterday - yesterday's data 

Please help me to create a expression.

I have a dim date table and also another table which has all the interaction type along with interaction date. Interaction date is joined with Dim date table (Date)

Thanks you.

Regards,

Abhishek

 

3 REPLIES 3
Dishantkothari
New Member

You can also make the dynamic date selection using field parameters for example L1M TO LAST N MONTHS means a drop-down will be provided to the user to select the n months if he selects 6 then L6M data will be filtered 

v-sgandrathi
Community Support
Community Support

Hi @abhishek20_09,

 

Thank you for providing detailed information on your issue. I’ve reviewed your scenario and successfully replicated it using sample data on my end.

I’m sharing the working .pbix file below so you can explore the setup and DAX logic more clearly. Please feel free to open it and review how the relationships and measures are configured:

 

I hope this helps resolve your issue. If you have any questions or need further clarification, I’m happy to help.


Thank you.

Hi @abhishek20_09,

 

.Just a quick check-in! Has your issue been resolved with the information we shared? We’d be delighted to help further if needed.

 

Thank you.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors