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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Solved! Go to Solution.
Hi @Ste_For94 ,
Use the below measures.
Hi @Ste_For94 ,
Use the below measures.
Thanks @harshnathani I think this should work! still I'm having problems in implementing what you did and all I'm getting is an empty table... did you link somehow the calendar table to the incident table? if so how? (join, relation...)
also where should i build my measures, into the incident or the calendar table?
thank you, sorry to bother 🙂
Stefano
Created a Calendar Table.
yep done that already, I made a mistake in selecting the filter field...
and then the numbers were not adding up because if say i select only years and months it does not work unless i modify the measure like this:
Hi @Ste_For94
Unfortunately, the information you provided is not enough to provide help.
1. Do you need those 3 columns in the same fact table or you want to build a virtual one in Power BI?
2. Do you have a separate calendar table and if you do, what relationship is the active one: Data_Ins or Data_Risol?
It would be best if you provide a sample table with desired output.
But still you can adopt the following pattern:
VAR MaxDate =
MAX ( 'Calendar'[Date] ) -- saves the last visible date
VAR DesiredTable =
ADDCOLUMNS (
VALUES ( 'Calendar'[Date] ),
"Open Cases", CALCULATE (
COUNTROWS ( 'FactTable' ),
FILTER ( VALUES ( 'FactTable'[State] ), 'FactTable'[State] = "Open" ),
FILTER ( ALL ( 'Calendar' ), 'Calendar'[Date] <= MaxDate )
)
)
RETURN
DesiredTableThis code returns a table, so you can use it in PowerBI
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 |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |