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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Dear Community,
I am Power BI beginner, but I'm trying to use already existing knowledge on this forum. Today, I created account because I need to ask you for support for my issue which I faced because I have no idea how to make it...
I have variables:
@KaZeK , GENERATESERIES will give you a column Value , which you can use in Addcolumns to ahve some calculation
Example we are using date from the calendar to calculate other columns
Calendar = Addcolumns(calendar(date(2020,01,01), date(2021,12,31) ), "Month no" , month([date])
, "Year", year([date])
, "Month Year", format([date],"mmm-yyyy")
, "Month year sort", year([date])*100 + month([date])
, "Qtr Year", format([date],"yyyy-\QQ")
, "Qtr", quarter([date])
, "Month",FORMAT([Date],"mmmm")
, "Month sort", month([DAte])
, "Is Today" ,if([Date]=TODAY(),"Today",[Date]&"")
, "Month Type", Switch( True(),
eomonth([Date],0) = eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0)= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY") )
,"Year Type" , Switch( True(),
year([Date])= year(Today()),"This Year" ,
year([Date])= year(Today())-1,"Last Year" ,
Format([Date],"YYYY")
)
)
Hello Amitchandak,
Based on your responce I see that this is not exactly what I need. I would like to create new table based on the GENERATESERIES() function...
I tried to do something like below, but it doesnt work, probably there are some mistakes, can you have a look please?