Forum Discussion

ChoiJunghoon's avatar
ChoiJunghoon
Helper III
5 years ago

Create the table using generateseries

Hello. Dax superman. 

Could you save me with DAX..? 

 

I have a "RawTableA". 

and then, I have made and used a dax table serveral times.  

 

Is there a way to make it all at once using Dax ? 

 

RawTableA

GroupSNCT
ASN14
ASN25
ASN33
BSN43
BSN56
BSN67
CSN75
CSN84
CSN93

 

*Create the ResultA Table for GroupA

-ResultA

GroupSNCT
ASN11
ASN12
ASN13
ASN14
ASN21
ASN22
ASN23
ASN24
ASN25
ASN31
ASN32
ASN33

 

*and then, Create the New table by using ResultA

-ResultA-1 (Max Value for SN Coulmn)

GroupSNCT
ASN14
ASN25
ASN33

 

*and then. I create the New ResultB table by using tables

-ResultB (ResultA-1  + TableA)

Listed in the order of values in group B after the min value in result A-1.

GroupSNCT
BSN44
BSN45
BSN46
BSN55
BSN56
BSN57
BSN58
BSN59
BSN510
BSN66
BSN67
BSN68
BSN69
BSN610
BSN611
BSN612

 

*and then, Create the New table by using ResultB

-ResultB-1 (Max Value for SN Coulmn)

GroupSNCT
BSN46
BSN510
BSN612

 

*and then. I create the New ResultC table by using tables

-ResultC (ResultB-1  + TableA)

Listed in the order of values in group C after the min value in result B-1.

ResultC (ResultB-1 + TableA)

GroupSNCT
CSN77
CSN78
CSN79
CSN710
CSN711
CSN811
CSN812
CSN813
CSN814
CSN913
CSN914
CSN915

..

..

 

Final Ctreat Result

Union (ResultA, ResultB, ResultC)

 

Is there way how to create tables without using many creating table ? 

2 Replies