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 am new to power bi and Dax , i need a little help i have a table with rents of different Properties .Structure of table is as follows :
Properties :
PropertyID | RentPerMonth | Month(date)
----------------------------------
i want to see total revnue for each property ID
eg if i have 2 properties eg
prp1 |200 | July 2009
prp1 |300 | August 2009
prp1 |250 | september 2009
prp2 |215 | July 2009
prp2 |275 | August 2009
prp2 |288 | september 2009
now for each property id i want to see its total revnue generated ,secocdaly i want to see standard deviation against each property id
Note : I dont want to total sales for all products , i want to see sales for each product ID so i can see them on any visual
Solved! Go to Solution.
You send me the formula for standard deviation so I rebuild it in DAX for you so you can understand it. If you check the formula you posted, you will see -1 too.
You can find the full explanation of ALLEXCEPT here;
https://docs.microsoft.com/en-us/dax/allexcept-function-dax
I hope this is what your after:
Stdev (In Property) = CALCULATE(STDEV.S(Table1[Value]),ALLEXCEPT('Table1',Table1[Property]))
Avg (In Property) = CALCULATE(AVERAGE('Table1'[Value]),ALLEXCEPT('Table1',Table1[Property]))
@Anonymous in your post what you refer to product?? It is not very clear?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hello,
Create a simple measure like SUM(RentPerMonth), drag the measure into a column chart, and drag property id on the axis.
Regards,
Adrian
What do you think about this?
I can not confirm that, because it produces a weird result in my data set;
same here confused...
and standard deviation formula is way complex
I'm glad I could help
so what you suggest ? need your suggestion
Here you go;
can you please share formulas for delta AND squared delta and all calculation you did 🙂
i want to try with my data 🙂
just a random thought average of rent will be giving average of all rents for all property ids. right?
its not showing average rent for each property am i right?
That's correct. As you can see in the screenshots the average is equal on all rows.
If you want to use the average of a property you can change the measure into;
And also change the St Dev measure into;
and just for sake of understanding...what is the use of this allexcept and that subtraction(-1) in end
what that subtraction do..
Sorry for asking so many lame questions , Actually i am new to power bi and dax and i want to polish my skills in this field
You send me the formula for standard deviation so I rebuild it in DAX for you so you can understand it. If you check the formula you posted, you will see -1 too.
You can find the full explanation of ALLEXCEPT here;
https://docs.microsoft.com/en-us/dax/allexcept-function-dax
and*(Total rent ) sum will be changed in similar manner to show sum for each proerty ,rather then showing for all
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 |
---|---|
41 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
42 | |
32 | |
30 | |
18 | |
18 |