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 August 31st. Request your voucher.
@dofrancis3 Hi! Create a measure like:
D1_Percentage =
VAR Z_Value = LOOKUPVALUE( Table1[Z], Table1[Country], SELECTEDVALUE(Table2[Country]) )
RETURN DIVIDE( Table2[D1a] + Table2[D1b], Z_Value, 0)
D9_Percentage =
VAR Z_Value = LOOKUPVALUE( Table1[Z], Table1[Country], SELECTEDVALUE(Table2[Country]) )
RETURN DIVIDE( Table2[D9], Z_Value, 0)
MC1_Percentage =
VAR U_Value = LOOKUPVALUE( Table1[U], Table1[Country], SELECTEDVALUE(Table2[Country]) )
RETURN DIVIDE( Table2[MC1], U_Value, 0)
-- Repeat for other percentages using the same pattern
BBF
Dear @BeaBF ;
Please could you check again it doen't work it give me 0% will i have data
Please advise
Hi @dofrancis3 ,
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
User | Count |
---|---|
27 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
6 |