Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi, im new in power bi and i fighting with DAX language
hi have calculated a measure with this
Hi @rufmau68 ,
You want to calculate the average of [A] which is [A]/count of category?
If so you could try the following measure.
[A]/calculate(distinctcount(category),all(table))
If not, please show some sample data and expected result to us.
Best Regards,
Jay
@rufmau68 , A seem to Avg Already X/Y
Try Like
Divide(sum(SCHEDA_CNT_AZIENDA_ENTE[A_PERCORRENZA_EFFETTIVA]),sum(SCHEDA_CNT_AZIENDA_ENTE[A_VEICOLI_UTILIZZATI]))
Usually, If we want sum till category and avg after that of a measure A, then we will do
Averagex(Value(Table[Category]), [Measure])
dont works neither if i wont to match every sum() by denom_ente with grand total
with womthinks like this
i try it but dont works: it return the same value in A column, it seems that it dont overrides category table contest... (*)
(*) i use values() and not value(), because value() need measure column name and not category column name
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
90 | |
88 | |
83 | |
64 | |
49 |
User | Count |
---|---|
127 | |
108 | |
87 | |
70 | |
66 |