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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
hello team,
I need to create a measure (not a coloumn) as I am getting my data from a services data analysis services and i caanot create coloumns.
A measure should extract quarter from the (created on) coloumn in the pic attached and another measure to extract the year as well.
any help is more than apperciated.
Solved! Go to Solution.
Hi @Rehab_hassan ,
You need to create something like this:
Month = MONTH(MAX(Opportunities[Created On]))) Quarter = SWITCH ( TRUE (); MONTH ( MAX ( Opportunities[Created On])) ) <= 3; "Q1"; MONTH ( MAX ( Opportunities[Created On]) ) ) <= 6; "Q2"; MONTH ( MAX ( Opportunities[Created On])) ) <= 9; "Q3"; "Q4" )
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Rehab_hassan ,
You need to create something like this:
Month = MONTH(MAX(Opportunities[Created On]))) Quarter = SWITCH ( TRUE (); MONTH ( MAX ( Opportunities[Created On])) ) <= 3; "Q1"; MONTH ( MAX ( Opportunities[Created On]) ) ) <= 6; "Q2"; MONTH ( MAX ( Opportunities[Created On])) ) <= 9; "Q3"; "Q4" )
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português