Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
HI,
I need help to create a sequence number as the photo shows, notice that I have the color duplicate, that is correct, every color belong to a different Style, I need a DAX code to built the sequence and used it later in a calculation
Thanks
Solved! Go to Solution.
Hi,
In the Query Editor, create an Index number column from 1. Thereafter, write this calculated column formula
=CALCULATE(DISTINCTCOUNT(Data[Attribute]),FILTER(Data,Data[Index]<=EARLIER(Data[Index])))
Hope this helps.
Hi,
In the Query Editor, create an Index number column from 1. Thereafter, write this calculated column formula
=CALCULATE(DISTINCTCOUNT(Data[Attribute]),FILTER(Data,Data[Index]<=EARLIER(Data[Index])))
Hope this helps.
Hey,
I'm not sure if I understand your requirement 100%, but maybe this is what you are looking for.
Create a calculated column using this DAX (not complete):
<nameofthecalculatedcolumn> = var thisAttribute = '<yourtablename>'[Attribute] return SWITCH( thisAttribute ,"FRISALES", 1 ,"MONSALES", 2 ,... )
Hopefully, this is what you are looking for.
If not please create a pbix that contains sample data that represents your table structure, upload the pbix to onedrive or dropbox and share the link.
Regards,
tom
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |