Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi Folks,
I have Period ,FeeType, FeeDescri columns in my model. i want to add new column based on Period and Feetype.
Ex: 2022Q1 and QF then i want to add First Quarter 2002 + FeeDescri
Ex2: 202209 and MF then i want to add September 2022+ FeeDescri
Can we achive this with DAX. Please help me
Thanks in Advance.
Solved! Go to Solution.
Hi @Gopal_PV
Please refer to attached sample file with the proposed solution
Result =
VAR CurrentDescription = 'Table'[FeeDescri]
VAR CurrentPeriod = 'Table'[Period]
VAR CurrentYear = LEFT ( CurrentPeriod, 4 )
VAR MonthOrQuarter1 = SUBSTITUTE ( CurrentPeriod, CurrentYear, "" )
VAR MonthOrQuarter2 =
IF (
ISERROR ( VALUE ( CurrentPeriod) ),
SWITCH (
RIGHT ( MonthOrQuarter1, 1 ),
"1", "First Quarter",
"2", "Second Quarter",
"3", "Third Quarter",
"4", "Fourth Quarter"
),
FORMAT ( DATE ( CurrentYear, MonthOrQuarter1, 1 ), "mmmm" )
)
RETURN
MonthOrQuarter2 & " " & CurrentYear & " " & CurrentDescription
Hi @Gopal_PV
Please refer to attached sample file with the proposed solution
Result =
VAR CurrentDescription = 'Table'[FeeDescri]
VAR CurrentPeriod = 'Table'[Period]
VAR CurrentYear = LEFT ( CurrentPeriod, 4 )
VAR MonthOrQuarter1 = SUBSTITUTE ( CurrentPeriod, CurrentYear, "" )
VAR MonthOrQuarter2 =
IF (
ISERROR ( VALUE ( CurrentPeriod) ),
SWITCH (
RIGHT ( MonthOrQuarter1, 1 ),
"1", "First Quarter",
"2", "Second Quarter",
"3", "Third Quarter",
"4", "Fourth Quarter"
),
FORMAT ( DATE ( CurrentYear, MonthOrQuarter1, 1 ), "mmmm" )
)
RETURN
MonthOrQuarter2 & " " & CurrentYear & " " & CurrentDescription
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |