Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I have a table where I have 3 measures as row headers but I would like to to have three coumns labelled , Current Month, Year to Date and Total which will filter the data. Can anyone help with the coding as to how I can do this please @tamerj1 @goncalogeraldes - Thanks in advance
Solved! Go to Solution.
You need to use a column of type DATE in all time intelligence calculations. I think in your case would be:
Year to Date =
TOTALYTD ( [No of Claims], 'Fin_Calendar'[DateId] --this is the field that needs to be of type date )Make sure that the field is formatted like so:
Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!
You can also check out my LinkedIn!
Best regards,
Gonçalo Geraldes
Here is what I have put in the measure
and i get this error
You need to use a column of type DATE in all time intelligence calculations. I think in your case would be:
Year to Date =
TOTALYTD ( [No of Claims], 'Fin_Calendar'[DateId] --this is the field that needs to be of type date )Make sure that the field is formatted like so:
Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!
You can also check out my LinkedIn!
Best regards,
Gonçalo Geraldes
Thats great about the Year to Date but the Current Month is getting the following error
Here is the code
@spandy34 I think that you want to do is:
Current Month =
CALCULATE (
COUNTA ( 'Main Claim Data'[ClaimRef] ),
FILTER (
'Fin_Calendar',
'Fin_Calendar'[CalMonth] = SELECTEDVALUE ( 'Fin_Calendar'[CalMonth] )))Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!
You can also check out my LinkedIn!
Best regards,
Gonçalo Geraldes
Hi @goncalogeraldes thank you for this.
I think I need this but with the ClassofBusiness = OT and Policy Code containing REC
Do you think I am approaching this the correct way? Should I be greating all these measure for the table below?
Hello there @spandy34 ! I will assume that you want these values to be dynamic, thats is to say, that they depend on the selected date. So, for the current month, you can do one of the following:
Current Month =
/* This one has a "dynamic current month", so that the current month corresponds to your selection*/
CALCULATE (
SUM ( 'Table'[Sales] ),
FILTER (
'DatesTable',
'DatesTable'[Month] = SELECTEDVALUE ( 'DatesTable'[Month] )
)
)
For the Year to date, you can do:
Year to Date =
/* This measures uses the [Total sales] measure */
TOTALYTD ( [Total sales], 'DateTable'[DateKey] )
For the total, just use a regular SUM:
Total sales = SUM('Table'[Sales])
Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!
You can also check out my LinkedIn!
Best regards,
Gonçalo Geraldes
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 11 | |
| 9 | |
| 8 |