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.
Hello,
any help appreciated 🙂
i want to add figures up via dax but the issue is that the figures were broken down using a calculated column. from the orignal spreadsheet there was no age column and so i added one as the user wanted a breakdown via adults (and Unknown) and young people. You can see via the 3 boxes that i was able to get duration for adults (and Unknown) and young people by adding the calcuated column to the filter. is there a way that i can calculate duration of adults and young people without the calculated column? So i want a measure to add up young people duration, then measure for adults duration and then add those two to get final total? so i want to be able to total up 5923.9 + 296.4 = 622031 but not via the calculated column if poss
@bigsol84 You could add the column in the measure using ADDCOLUMNS and then use SUMMARIZE or GROUPBY to group and sum them and the SUMX across that table to add them up.
appreciate the post. Im still new to power bi and i understand what you have mention but could you show me how the dax formula will be written? Ive looked at youtube and some forums but getting my formula wrong.
Kind Regards
would the formula be something like this:
@bigsol84 I was thinking:
SUMX(
SUMMARIZE(
ADDCOLUMNS(
)
)
)
ive tried a few things and looked at various online things. when i make the formula am i expressing the different age groups first then adding up the duration?
Thanks
User | Count |
---|---|
27 | |
10 | |
8 | |
7 | |
5 |
User | Count |
---|---|
33 | |
13 | |
11 | |
9 | |
8 |