Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I would like the bolded text's cells in the matrix below to be highlighted. Or even if one of the cells would work when a change occurs would be fine. I'm not opposed to any way to get this to work. Thank you so much.
id | 2022.24 | 2022.25 | 2022.26 | 2022.27 | 2022.28 |
1 | 1 | 1 | 2 | 2 | 2 |
2 | 1 | 1 | 1 | 1 | 1 |
3 | 1 | 2 | 2 | 2 | 1 |
Solved! Go to Solution.
Hi,
You must have a Calendar Table with a relationship (Many to One and Single) from the Date column of your table to the Date column of the Calendar Table. To your visual, drag Date column from the Calendar Table. Write these measures:
Total = sum(Data[Value])
Total on previous day = calculate([Total],previousday(Calendar[Date]))
Variance = [Total]-[Total on previous day]
Use this Variance measure in Conditional formatting and apply your desired formatting.
Hi,
In the Calendar Table should be a Weeknumber column. Create the yyyy.ww column as well and drag that to your visual. Write these measures
Total in previous week = calculate([Total],datesbetween(Calendar[Date],min(calendar[Date])-6,max(calendar[Date])-6))
Variance = [Total]-[Total in previous week]
Hi,
You must have a Calendar Table with a relationship (Many to One and Single) from the Date column of your table to the Date column of the Calendar Table. To your visual, drag Date column from the Calendar Table. Write these measures:
Total = sum(Data[Value])
Total on previous day = calculate([Total],previousday(Calendar[Date]))
Variance = [Total]-[Total on previous day]
Use this Variance measure in Conditional formatting and apply your desired formatting.
Only problem I'm running into is that I need a measure for the previous work week, hence the yyyy.ww format. You are correct about the relationship which was already established 1:* from calendar to fact table. Thoughts?
Hi,
In the Calendar Table should be a Weeknumber column. Create the yyyy.ww column as well and drag that to your visual. Write these measures
Total in previous week = calculate([Total],datesbetween(Calendar[Date],min(calendar[Date])-6,max(calendar[Date])-6))
Variance = [Total]-[Total in previous week]
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
67 | |
51 | |
38 | |
26 |
User | Count |
---|---|
87 | |
54 | |
45 | |
40 | |
36 |