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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Sathvik123
Helper V
Helper V

How to get data for WTD ,MTD and QTD in Power Bi

Hello All,

 

I have a report where I need to filter my data based on trendtype.

The columns I have are Date,TrendType and Sales as below

 

Sathvik123_1-1648053868248.png

 

So I created a slicer called trendtype having 4 values  daily, weekly,Monthly and Quarterly

So data is already aggrigated for daily , weekly and monthly (dont have data for Quartely)

 

If user selects daily in slicer then I need to show last 30 days data

Weekly then last 12 weeks data and also I need to show WTD data too

Monthly then last 12 Months data and also I need to show MTD data too

Quarterly then last 4 Quarters data and also I need to show QTD data too

 

Could any one please help , how to do this

 

 

 
1 REPLY 1
mh2587
Super User
Super User

https://community.powerbi.com/t5/Desktop/Change-time-period-week-Month-Quarter-on-slicer-selection/t...

Hope this will help you


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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