The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
This formula gives me the year of my cooler depending on the serial number. The variants are: Length of the series, with which numbers it begins, etc. I hope you can help me
=IF(BLANK(B2),"",SI. ERROR(SI(B2="S/E","S/E",SI(Y(LEFT(TEXT(B2,1)),LONG(B2)=12,EXTRACT(B2,4,2)*1=22),2022,IF(Y(LENGTH(B2)=13,LEFT(B2,2)*1=15),2015,IF(Y(LENGTH(B2)=12,LEFT(B2,2)*1=15),2015,IF(Y(LONG(B2)=9,LEFT(B2,2)*1=15),2015,IF(Y(LENGTH(B2)=13, LEFT(B2,2)*1=16),2016,SI(Y(LONG(B2)=12,LEFT(B2,2)*1=16),2016,IF(Y(LONG(B2)=13,LEFT(B2,2)*1=17),2017,IF(Y(LONG(B2)=12,LEFT(B2,2)*1=17),2017,IF(Y(OR(LONG(B2)=14,LONG(B2)=15),LEFT(B2,3)*1=617),2017,IF(Y(LENGTH(B2)=9, EXTRACT(B2,2,2)*1=17),2017,IF(Y(O(LONG(B2)=12,LONG(B2)=13),LEFT(B2,2)*1=18),2018,IF(Y(O(LENGTH(B2)=11,LENGTH(B2)=12,LONG(B2)=13),LEFT(B2,2)*1=19),2019,IF(Y(LENGTH(B2)=13,LEFT(B2,2)*1=20),2020,IF(Y(LENGTH(B2)=13,LEFT(B2, 2)*1=21),2021,SI(Y(LONG(B2)=13,LEFT(B2,2)*1=22),2022,IF(Y(LONG(B2)=13,LEFT(B2,2)*1=23),2023,"<2015")),"<2015"))
@Syndicate_Admin ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
this is how I put it in DAX but it gives me an error:
Expressions that produce Variant data types cannot be used to define calculated columns.
User | Count |
---|---|
85 | |
84 | |
36 | |
34 | |
32 |
User | Count |
---|---|
93 | |
79 | |
66 | |
55 | |
52 |