Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Good morning,
I want to use a measure in the Data Card visual to calculate the weekday that most cases in my company happen but when I filter by year it does not calculate the max weekday correctly. This is the formula I have:
Solved! Go to Solution.
Thanks for the reply from audreygerred , please allow me to provide another insight:
Hi @New2This ,
Here are the steps you can follow:
1. Create measure.
Test =
var _table=
SUMMARIZE(
ALLSELECTED('Data'),
[DOTW],"Count",COUNTX(FILTER(ALLSELECTED('Data'),'Data'[DOTW]=EARLIER('Data'[DOTW])),[DOTW]))
RETURN
FORMAT(
MAXX(
FILTER(_table,[Count]=MAXX(_table,[Count])),[DOTW]),"dddd")
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Thanks for the reply from audreygerred , please allow me to provide another insight:
Hi @New2This ,
Here are the steps you can follow:
1. Create measure.
Test =
var _table=
SUMMARIZE(
ALLSELECTED('Data'),
[DOTW],"Count",COUNTX(FILTER(ALLSELECTED('Data'),'Data'[DOTW]=EARLIER('Data'[DOTW])),[DOTW]))
RETURN
FORMAT(
MAXX(
FILTER(_table,[Count]=MAXX(_table,[Count])),[DOTW]),"dddd")
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi! Here is what I used:
2018 was Friday:
Proud to be a Super User! | |
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 51 | |
| 36 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |