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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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