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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I have three tables:
1) Events Table ('tblGlobal'): list of events with associated years and other metadata (for this example, using one of them - "Terrain")
2) Terrains Table ('tblTerrains'): Related table listing all "Terrains"
3) Dates Table ('tblDates'): Related Table listing all "Years"
I need a stacked bar chart listing events, with the legend being Terrain.
I calculated a running total count of events by year and learned how to avoid blanks using the following:
@paulmorgan , Try like
Measure =
CALCULATE (
COUNTA('tblGlobal'[Country]),
FILTER ( ALLSELECTED( 'tblDates' ),
'tblDates'[End year] <= max(tblDates[Years])),FILTER ( 'tblGlobal'[,'tblGlobal'[Terrain]<>"Offshore"
)
)
assuming tblDates is a date table
Thanks for the thought.
I could try that, but my challenge is that I need to deal with events that start and events that end. So I actually created three measures for each terrain. One as above using Start Year, one using End Year and one that subtracts one from the other. So I'm not clear how to apply that distinction in the proposed approach.
Sorry for the additional limitation. I should have provided a complete description of the challenge.
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!
| User | Count |
|---|---|
| 103 | |
| 81 | |
| 65 | |
| 50 | |
| 45 |