The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
I hope everyone is good.
I have:
Hello everyone. I hope you all are great!.
The column # Rows = COUNTROWS('QUERY SQL ROCHA DESDE 2020')
The column # total sin late = CALCULATE([# Rows],ALL('QUERY SQL ROCHA DESDE 2020'[LATE_DELIVERY_REASON]))
Now I need to calculate each row of "# Rows" by the total of "# total sin late" (23.928). Anyone who knows how to do it?
Thanks a lot. Best regards!
Chema ortega
Solved! Go to Solution.
Please try the following DAX:
column =
Var _sum_sin_late = SUM('Table'[# total sin late])
RETURN
DIVIDE([# Rows],_sum_sin_late)
Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please try the following DAX:
column =
Var _sum_sin_late = SUM('Table'[# total sin late])
RETURN
DIVIDE([# Rows],_sum_sin_late)
Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ok, thanks a lot, Jialongy!!!
I'll try it. Best regards,
Chema Ortega
There may be context missing with a simple solution like this, but have you tried something like:
Rows by Total =
VAR Rows = COUNTROWS('QUERY SQL ROCHA DESDE 2020')
VAR totalsinlate = CALCULATE([# Rows],ALL('QUERY SQL ROCHA DESDE 2020'[LATE_DELIVERY_REASON]))
RETURN
DIVIDE(Rows, totalsinlate)
Ok, thanks a lot, artisan!!!
I'll try it. Best regards,
Chema Ortega
User | Count |
---|---|
14 | |
12 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
13 | |
8 | |
5 |