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 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.
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 |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |