The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello everyone,
I hope you're doing great. I made a column calculation (in FacSales table) that identifies in wich date a company started working with us trough this expresion:
Any recommendation will be well received.
Thak you very much.
Diego V.
You should never, ever create a calculated column in a fact table using CALCULATE unless the fact table is really tiny. On real fact tables it's going to take a lot of time to calculate. Very often it just leads to a crash due do the amount of memory needed.
[Cust Init Date] =
IF( HASONEVALUE( DimCustomer[CustomerID] ),
CALCULATE(
MIN( FactSales[Fecha_OT] ),
ALLEXCEPT(
FactSales,
DimCustomer
)
)
)
Daxer, i think that i found the way using another measuere that uses your recomended measure:
Thanks for the feedback daxer, i got same result. Now how can i get just dates depending on selected value in slicer? (Using something like ALLSELECTED?)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
18 | |
18 | |
17 | |
15 | |
13 |
User | Count |
---|---|
36 | |
34 | |
19 | |
18 | |
16 |