Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello community,
I need your help about a script of custom column, so i want to have a value in column "Exportations MDH" when i had "EXPORTATIONS FAB" else to have "-" in column of "Importations MDH".
Plzzzzzzzzz help me
Solved! Go to Solution.
Hi nononiwniw,
Based on your description, [Exportations MDH] and [Importations MDH] are both calculate columns, right? You can use DAX formula like this:
[Exportations MDH] = IF ( table[Flux_G_Agrefe_LIB] = "EXPORTATIONS FAB", "Value1", "Value2" ) [Importations MDH] = IF ( table[Flux_G_Agrefe_LIB] = "EXPORTATIONS FAB", FACT_ComExt[valeur_Stat_MDH], "-" )
Regards,
Jimmy Tao
Hi nononiwniw,
Based on your description, [Exportations MDH] and [Importations MDH] are both calculate columns, right? You can use DAX formula like this:
[Exportations MDH] = IF ( table[Flux_G_Agrefe_LIB] = "EXPORTATIONS FAB", "Value1", "Value2" ) [Importations MDH] = IF ( table[Flux_G_Agrefe_LIB] = "EXPORTATIONS FAB", FACT_ComExt[valeur_Stat_MDH], "-" )
Regards,
Jimmy Tao
Please elaborate what excatly do you want to see in both coloumns if EXPORTATIONS FAB and what do you want to see if not
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
67 | |
51 | |
39 | |
26 |
User | Count |
---|---|
87 | |
54 | |
45 | |
40 | |
36 |