Hi
I have the following averages - on their own they work fine
Solved! Go to Solution.
Hi @NadiaLR1234 ,
According to your description, I suggest that you can use calculated columns to return "Avg","AvgC" and "AvgRental".
Measure carries the formula which eventually gives the output, so when we use measure1 in another measure2, it will calculate according to the formula of measure1 instead of the result of measure1.
Create three calculated columns.
average = DIVIDE(SUM('Table'[total sales]),SUM('Table'[trns]),0)
averagec = DIVIDE(SUM('Table'[total sales]),SUM('Table'[prodnodays]),0)
Column = IF('Table'[type]="car rental",[average],IF('Table'[type]="trans",[averagec],0))
Final output:
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @NadiaLR1234 ,
According to your description, I suggest that you can use calculated columns to return "Avg","AvgC" and "AvgRental".
Measure carries the formula which eventually gives the output, so when we use measure1 in another measure2, it will calculate according to the formula of measure1 instead of the result of measure1.
Create three calculated columns.
average = DIVIDE(SUM('Table'[total sales]),SUM('Table'[trns]),0)
averagec = DIVIDE(SUM('Table'[total sales]),SUM('Table'[prodnodays]),0)
Column = IF('Table'[type]="car rental",[average],IF('Table'[type]="trans",[averagec],0))
Final output:
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
209 | |
52 | |
43 | |
41 | |
39 |
User | Count |
---|---|
269 | |
210 | |
73 | |
70 | |
65 |