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.
Hi All,
I need to replace a link to Excel data source with a generated series with DAX as follows:
Years 2013 to 2025, with 1-120 for each so 13 years with 1-120 number rows. Then I need 75 groups of that, denoted 1,2 etc
Thanks so much in advance, I am stuck!
Year | Dev Month | Group |
2013 | 1 | 1 |
2013 | 2 | 1 |
For each year | to 120 | then 75 groups of this |
Solved! Go to Solution.
Generated = VAR _numberTab = SELECTCOLUMNS ( GENERATESERIES ( 1, 120 ), "number", [Value] )
VAR _valuesTab = GENERATESERIES(2013,2025,1)
RETURN
CROSSJOIN(_numberTab, _valuesTab)
The above gives me 1 to 120 rows for each year. Then I need this x75 for 1 to 75
So crossjoin above with Generateseries (1,75,1)
I have solved this by crossjoining the above two tables to get the final solution
Generated = VAR _numberTab = SELECTCOLUMNS ( GENERATESERIES ( 1, 120 ), "number", [Value] )
VAR _valuesTab = GENERATESERIES(2013,2025,1)
RETURN
CROSSJOIN(_numberTab, _valuesTab)
@DavidWaters ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.
User | Count |
---|---|
98 | |
76 | |
75 | |
48 | |
27 |