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!View all the Fabric Data Days sessions on demand. View schedule
Hi there,
I have a problem finding a solution how to (in Measure) Calculate a Daily MEDIAN for values, based on this setup:
- I have column DATE (date)
- I have column FAILURES (Integer)
- I have column SERIAL_NO (String)
where
One day from the DATE has several failures generated by the SERIAL_NO .... then I have in the DATE column several same dates for each the Failures.
I can calculate MEDIAN for Non-zero or Non-blank values from the FAILURES:
CALCULATE(
MEDIAN('Table'[failure]),'Table'[failure]<>0||'Table'[failure]<>BLANK()))
thx for a help
Solved! Go to Solution.
I've got it:
First - for the SUM o ailures per day:
CALCULATE(
MEDIAN('Table'[SUM o ailures per day]),'Table'[SUM o ailures per day]<>0||'Table'[SUM o ailures per day]<>BLANK()))Hi @jppv20 ,
the example is attached in my screenshot from XLS.
Let start from a scratch:
- I have column DATE (date)
- I have column FAILURES (Integer)
What I need:
I hope, it is more clear.
Jan
I've got it:
First - for the SUM o ailures per day:
CALCULATE(
MEDIAN('Table'[SUM o ailures per day]),'Table'[SUM o ailures per day]<>0||'Table'[SUM o ailures per day]<>BLANK()))Hi @jeyare ,
Think I understand better now. You can create the calculated column with the following formula:
After that you can create the measure:
Jori
If I answered your question, please mark it as a solution to help other members find it more quickly.
Connect on Linkedin
Hi @jeyare ,
Try this:
CALCULATE(
MEDIAN('Table'[failure]),'Table'[failure]<>0||'Table'[failure]<>BLANK(),ALLEXCEPT('Table','Table'[date]))
Jori
If I answered your question, please mark it as a solution to help other members find it more quickly.
Thank you @jppv20 ,
maybe I was wrong in my description. Here is better situation scope:
Maybe I need to create a New Column: Sum of failures for the same date
here I need to Calculate Sum of Failures per each day separately (follow the table),
then I can Calculate the Median from the New Column.
I will appreciate a help.
Thx
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!