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.
I have two tables, and the PrimaryKey is Class. I need a dax to calculate the sum of now divided by the sum of max when there is a filter Quarter.
Solved! Go to Solution.
Hi @HaiQuan
Please try
ResultMeasure =
CALCULATE (
DIVIDE ( SUM ( Table1[now] ), SUM ( Table1[max] ) ),
Table1[class] IN VALUES ( Table2[class] )
)
Hi @HaiQuan
Please try
ResultMeasure =
CALCULATE (
DIVIDE ( SUM ( Table1[now] ), SUM ( Table1[max] ) ),
Table1[class] IN VALUES ( Table2[class] )
)
Thank you bro, it works, nb!
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |