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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello everyone, I hope you are well.
I have a problem with a measure that I am carrying out to be able to calculate the days of leave that professionals take. Previously, they had helped me with the following measure that answered the question
"If a person has a license that starts on 01/25 and ends on 02/10, he brings only the 6 days of January and February 10"
the Measure was as follows:
Days count =
VAR MaxDate = MAX(Calendario[Fecha])
VAR MinDate = MIN(Calendario[Fecha])
RETURN
SUMX
(
Licencias,
DATEDIFF
(
MAX( Licencias[INICIO], MinDate ),
MIN( Licencias[FIN], MaxDate),
DAY
) + 1
)
But I have a problem, as my filter is related to the start of the license, when placing the filter in the following month, it no longer counts the licenses of January, that is, the measure will not bring the 10 days corresponding to February because it filters the licenses of January and does not take them.
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 |
---|---|
16 | |
8 | |
7 | |
7 | |
6 |
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
8 |