Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Guru's
I have data excel like attached and i want to display sum based on the current week variable
Current Week = WEEKNUM ( TODAY (), 2 )-1----For example this variable output is 10
iwant to pick slaes_10,Margin_10,Profit_10 columns as Report output.
Next week the output may get changed to Pick slaes_11,Margin_11,Profit_11 columns as Report output
Thanks,
Joshi
Solved! Go to Solution.
Hi @Anonymous ,
Based on my test, you could refer to below steps:
Unpivot other columns in query editor:
Result:
Apply it and create below measure:
Measure = CALCULATE(SUM(Table1[Value]),FILTER('Table1','Table1'[Attribute]=CONCATENATE("Sales_",WEEKNUM ( TODAY (), 2 )-1)))
Set filter and you could see the correct result:
You could also download the pbix file to have a view.
Regards,
Daniel He
Hi @Anonymous ,
Based on my test, you could refer to below steps:
Unpivot other columns in query editor:
Result:
Apply it and create below measure:
Measure = CALCULATE(SUM(Table1[Value]),FILTER('Table1','Table1'[Attribute]=CONCATENATE("Sales_",WEEKNUM ( TODAY (), 2 )-1)))
Set filter and you could see the correct result:
You could also download the pbix file to have a view.
Regards,
Daniel He
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
75 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |