Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hi!
I am making a raport which analyses the progress of the MSCI index of a list of countries. I would like to have a graph with the MTD of the countries which perform worst at a certain date. The dates in the dataframe are non consecutive. For example, to show a graph consising just the top five worst perfoming countries by the end of august, i used this DAX.
MTD end aug count DM =
VAR aug = CALCULATE (
MAX ( 'Country DM'[Date] ),
FILTER (
'Country DM',
'Country DM'[Date] <= DATE(2021,8,31)
)
)
RETURN
CALCULATE(SUM('Country DM'[MTD]), 'Country DM'[Date] = aug)
MTD end month count DM =
VAR month = CALCULATE (
MAX ( 'Country DM'[Date] ),
FILTER (
'Country DM',
'Country DM'[Date] <= SELECTEDVALUE('Country DM'[Date])
)
)
RETURN
CALCULATE(SUM('Country DM'[MTD]), 'Country DM'[Date] = month)
@KarianneKies Hi, though I am not 100% sure before see your report, I guess (from your explanation) that you put the [date] as outer fitrer so that user can select specific date. in that case, power BI can see only data for the selected date (1 day) among whole table.
Please mark it as soluntion if helped.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
9 |