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 September 15. Request your voucher.
Week Ending | Actual | Goal | Current Ratio % | Previous Ratio % |
MM/DD/YYYY HH:MM | A | B | (Table[Actual]/Table[Goal])*100 | ((Table[Actual]/Table[Goal])*100)-7 ??? |
Hello,
I'm trying to display the Current Ratio % value and Previous Ratio % value simultaneously, by applying a filter onto column [Previous Ratio %].
The Current Ratio % is a new column with the calculations = (Table[Actual]/Table[Goal])*100
I also have a measure for previous week = previous_week_ending = DATEADD(Table[week_ending],-7,DAY)
So far I have tried:
and
but those didn't work due to syntax and dax errors.
Please help me out!
Solved! Go to Solution.
pls try this
Measure 2 = sumx(FILTER(all('Table'),'Table'[week ending]=max('Table'[week ending])-7),[Measure])
pls see the attachment below
Proud to be a Super User!
could you pls provide some sample data and the expected output?
Proud to be a Super User!
Hi @ryan_mayu
Here is sample data:
In a PBI table visualization, I want the last column [Previous Ratio %] to output the last week ending's [Current Ratio %].
pls try this
Measure 2 = sumx(FILTER(all('Table'),'Table'[week ending]=max('Table'[week ending])-7),[Measure])
pls see the attachment below
Proud to be a Super User!
User | Count |
---|---|
58 | |
56 | |
55 | |
50 | |
32 |
User | Count |
---|---|
172 | |
89 | |
70 | |
46 | |
45 |