March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Relativley new to Power BI.
I used the quick measure to create a MTD premium
MTD Net Specific Premium =
How can I get 1/1/24 to show the vaule in 12/1/23 and show the value as of 4/1/24 in both 5/1/24 and 6/1/24. Case reserves can also create the same issue but in the instance shown is does not.
Solved! Go to Solution.
@tkaste63 Hi!
1. Create a new Date table in Power BI if you don't already have one.
DateTable =
ADDCOLUMNS (
CALENDAR (DATE(2020, 1, 1), DATE(2024, 12, 31)),
"Year", YEAR([Date]),
"MonthNumber", MONTH([Date]),
"MonthName", FORMAT([Date], "MMMM"),
"YearMonth", FORMAT([Date], "YYYYMM")
)
2. Create your MTD Measure as:
MTD Net Specific Premium =
CALCULATE(
SUM('Spec Prem'[Specific Net Premium]),
FILTER(
ALL('DateTable'),
'DateTable'[Date] <= MAX('DateTable'[Date])
),
DATESMTD('DateTable'[Date])
)
Make sure your Spec Prem table has a relationship with your new DateTable based on the appropriate date columns.
BBF
Thanks for the advise. Turns out it was a relationship issue, Spec Prem Table to Extract Date(datetable) was set to both and not single. Made the changes in the DAX formula and changed relationship to single and works great
@tkaste63 Hi!
1. Create a new Date table in Power BI if you don't already have one.
DateTable =
ADDCOLUMNS (
CALENDAR (DATE(2020, 1, 1), DATE(2024, 12, 31)),
"Year", YEAR([Date]),
"MonthNumber", MONTH([Date]),
"MonthName", FORMAT([Date], "MMMM"),
"YearMonth", FORMAT([Date], "YYYYMM")
)
2. Create your MTD Measure as:
MTD Net Specific Premium =
CALCULATE(
SUM('Spec Prem'[Specific Net Premium]),
FILTER(
ALL('DateTable'),
'DateTable'[Date] <= MAX('DateTable'[Date])
),
DATESMTD('DateTable'[Date])
)
Make sure your Spec Prem table has a relationship with your new DateTable based on the appropriate date columns.
BBF
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |