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.
How would I calculate this simple calculation in a filtered table?
Solved! Go to Solution.
Thanks. I figured out that all I really needed to do was use ALL(filtered_column[field])
This pattern will do a % of total.
Percent of Total =
VAR varCurrentAmount =
SUM( Table[Column] )
VAR varTotal =
SUMX(
ALL( Table ),
Table[Column]
)
VAR Result =
DIVIDE(
varCurrentAmount,
varTotal,
0
)
RETURN
Result
If you need more help, provide data in the format provided by the links below and maybe a screenshot or description of expected results.
How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThanks. I figured out that all I really needed to do was use ALL(filtered_column[field])
@Anonymous wrote:
Thanks. I figured out that all I really needed to do was use ALL(filtered_column[field])
You are welcome @Anonymous
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reporting