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.
Hi @Anonymous ,
Thank you for your reply.
I did not pose my question, correctly.
Here is my matrix.
My goal: create a measure that gives me an average percent.
For example, in Excel, I can perform the following.
Transform Data | Percent |
Join datasets | 91.67% |
Map fields between tables | 70.83% |
Transform from wide to long | 66.67% |
Union datasets | 66.67% |
Average Percent | 73.96% |
I can calculate the average percent with the following excel formula, =Subtotal(1, B2:B5).
What would the equivalent be in DAX?
Any nudge is greatly appreciated.
Luis Pablo Martinez
Hi @Anonymous ,
Based on the pbix file you provided, I tried to create a new meaure based on the meaure you created for the purpose you want to calculate the average ratio.
Create a measure:
Average Percent =
AVERAGEX(
VALUES('Survey Fact'[Response ID]),
[Percent]
)
Fianl output
Best regards
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
32 | |
14 | |
11 | |
10 | |
9 |