This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. 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! | |
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 32 | |
| 25 | |
| 22 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 23 | |
| 23 |