Forum Discussion
Daily Increase problem
- 5 years ago
Hi, MrGriff
Please check the below picture and the sample pbix file's link down below.
If I may suggest, I prefer to have date column and time column separately. Because in case there is time-based analysis is needed, it is more efficient.
Even if you do not split it for this time, you can still try to write something similar to the below.
Active Energy Delivered =VAR currentdate =MAX ( 'Calendar'[Date] )VAR currentarea =MAX ( Data[Area] )VAR currentlocation =MAX ( Data[Location] )VAR currentfactory =MAX ( Data[Factory] )VAR startlevel =CALCULATE (SUM ( Data[_VALUE] ),FILTER (ALLSELECTED ( Data ),Data[Time] = MIN ( Data[Time] )&& Data[Date] = currentdate&& Data[Area] = currentarea&& Data[Location] = currentlocation&& Data[Factory] = currentfactory))VAR endlevel =CALCULATE (SUM ( Data[_VALUE] ),FILTER (ALLSELECTED ( Data ),Data[Time] = MAX ( Data[Time] )&& Data[Date] = currentdate&& Data[Area] = currentarea&& Data[Location] = currentlocation&& Data[Factory] = currentfactory))RETURNendlevel - startlevelHi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hi, MrGriff
Please check the below picture and the sample pbix file's link down below.
If I may suggest, I prefer to have date column and time column separately. Because in case there is time-based analysis is needed, it is more efficient.
Even if you do not split it for this time, you can still try to write something similar to the below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hi Jihwan_Kim
Thanks for the help, I have tried to do the same as above but I get the below when I implement your solution,
I have attached the PBIX here for you to have a look at what I have done;
https://1drv.ms/u/s!AjC_xz2zXa0Ug-tYBlkfyUtQ5aYEzQ?e=fB6vuQ
If you can help that would be great.
Thanks
- Jihwan_Kim5 years agoSuper User
Hi, MrGriff
Thank you for your feedback.
Can you tell me which date / which area / which location / which factory information do you want to show in card visualization? Without selecting the criteria, I do not know what to show.
Or, please describe what is your desired outcome.
Thank you.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM