Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Everyone,
I have a report page (Report page 1) with sales in the week for each store and linked to this report page I have a tooltip which is showing a chart for sales over the last 8 weeks. I want to hover over the sales in the week for the table and then the tooltip to show filtered on the store but not filtering on the time period.
The problem is when I hover over the table for the tooltip it filters to the current week leaving out the last 7 weeks.
I created a measure:
Filter_enddate =
CALCULATE(sum(Table1 [Sales]),
Hi,
I might be being a bit silly, but I don't think that solves my problem. I can get the chart to filter correctly but I want it to keep the date filter but use the store filter when it is a tooltip.
@PowerBIWhat
Try use allselected() instead of all(),
Measure = CALCULATE(sum(Table1 [Sales]),
Hi,
This is filtering it when i view the page, but not when I use it as a tooltip?
@PowerBIWhat , If you have week /period have week rank
have columns like
Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)
Week Rank = RANKX(all('Date'),'Date'[Week Start date],,ASC,Dense)
Measures
This Week = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
Last Week = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))
Last year Week= CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=(max('Date'[Week Rank]) -52)))
Last 8 weeks = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]>=max('Date'[Week Rank])-8 && 'Date'[Week Rank]<=max('Date'[Week Rank])))
Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
116 | |
102 | |
78 | |
77 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |