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 dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have 48 locations; however, when I try to apply a last date/most recent date/year it doesn't total the 48 it is pulling all records i.e. Albany and if there were exercises conducted in 2021-2025 it doesnt apply a one count, or an inventory date, etc. It will show for example:
Solved! Go to Solution.
Hi @KDiSanto
Thank you for reaching out to the Microsoft Fabric Community Forum. Also @tamerj1 and @Greg_Deckler for your quick response on this topic.
Regarding your query on creating a DAX formula to use date column and location column
Please consider the below DAX
LocationsWithFSEIn3Years =
CALCULATE(
DISTINCTCOUNT('OPS FCC Exercise Events List'[Location Name]),
FILTER(
'OPS FCC Exercise Events List',
'OPS FCC Exercise Events List'[ExerciseType] = "Full Scale" &&
DATEDIFF('OPS FCC Exercise Events List'[End Date], TODAY(), YEAR) <= 3
)
)
If this response resolves your query, kindly mark it as Accepted Solution to help other community members. A Kudos is also appreciated if you found the response helpful.
Thank You!
Hi @KDiSanto
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.
Hi @KDiSanto
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @KDiSanto
We have not received a response from you regarding the query and were following up to check if you have found a resolution from the information provided below. If you find the response helpful, please mark it as the accepted solution and provide kudos, as this will help other members with similar queries.
Thank You!
Hi @KDiSanto
Thank you for reaching out to the Microsoft Fabric Community Forum. Also @tamerj1 and @Greg_Deckler for your quick response on this topic.
Regarding your query on creating a DAX formula to use date column and location column
Please consider the below DAX
LocationsWithFSEIn3Years =
CALCULATE(
DISTINCTCOUNT('OPS FCC Exercise Events List'[Location Name]),
FILTER(
'OPS FCC Exercise Events List',
'OPS FCC Exercise Events List'[ExerciseType] = "Full Scale" &&
DATEDIFF('OPS FCC Exercise Events List'[End Date], TODAY(), YEAR) <= 3
)
)
If this response resolves your query, kindly mark it as Accepted Solution to help other community members. A Kudos is also appreciated if you found the response helpful.
Thank You!
No I am not summarizing by count and I even went in to the exercise location column and transformed data to add a measurement and seems to not like it.
That is fine. What you have just provided is the calculated column that is being used as a filter or legend in the pie chart visual. My question is what are you placing in the Values of the pie chart visual?
The values are the full scale exercises completed by each site for the last 3 years; however, if the site has one exercise each year I want that to only return 1 as the value for that site because they are in compliance for completing a full scale within the 3 year period.
@KDiSanto Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
Below is some sample data, I was able to create the column for the LastFullScaleIn3Years and apply this formula to return a yes/no.
I am also using this table to establish a pie chart visual that shows the plan date and inventory date broken down by fiscal year; however, this as well is not totalling the 48 or less that 48 per fiscal year i.e FY23 total is 592, etc. which leads me to believe that is totalling all records based on having more than one submission date. This is only for the the plan and inventory date.
Location Name | Submission Date | Exercise Type | End Date | Fiscal Year | Last FSE within 3 years | Plan Date | Inventory Date |
San Juan | 3/13/2025 | Full Scale | 5/13/2025 | FY25 | Yes | 2/28/2025 | 5/13/2025 |
San Juan | 4/10/2025 | Full Scale | 5/15/2025 | FY25 | Yes | ||
Little Rock | Full Scale | 4/4/2024 | FY 24 | Yes | 10/4/2024 | 7/31/2024 | |
Tampa | Full Scale | 4/13/2023 | FY23 | Yes | 02/08/2023 | 3/8/2023 | |
Denver | Full Scale | 3/1/2022 | FY22 | Yes | 10/04/2022 | 10/12/2022 |
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |