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.
Tenho uma planilha com os registros diarios de todas as não conformidades geradas ao longo de 1 ano. Tenho outra planilha que mostra a hora trabalhada em cada mes do ano.
Preciso relativizar os dados dividindo a quantidade de não conformidades geradas de cada mês pela quantidade de horas trabalhadas do respectivo mês.
Como consigo fazer isso?
Hi @Tiagottf ,
Based on the limited information provided, I'd say the basic things you need to do would be:
-1- Ensure that the date columns in both your daily table and your monthly table are actual dates e.g. ensure that your monthly table shows 01/10/23 for October, not "Oct 23" etc.
-2- Create a proper calendar table with a [Month] column and mark it as the date table in your data model.
-3- Relate your calendar table to both fact tables on:
--- Calendar[Date] = monthlyTable[MonthDate]
--- Calendar[Date] = dailyTable[DayDate]
-4- Create a measure something like this:
_nonConfPerHour =
VAR __nonConf = SUM(dailyTable[NonConfValue])
VAR __hours = SUM(monthlyTable[HoursWorked])
RETURN
DIVIDE(__nonConf, __hours, 0)
-5- Add Calendar[Month] and [_nonConfPerHour] into your chosen visual.
Pete
Proud to be a Datanaut!