Forum Discussion
dax query
- 3 years ago
Whenever you have the opportunity to, share the download link of the PBI file with a Calendar Table and a Period column in the Calendar Table.
Hi,
So do you want to see the growth rate in a card visual. You will also need to share a Calendar Table with a column there of Period.
don't have the option for sharing and for uploading the pbix file and data file
create a calendar manually from 01/01/2021 to till now
- Arjun_reddy3 years agoHelper II have return the below dax query for the CY getting accurate value, PY variable have the issue only, It is fetching all the periods sum value, I don't want to get it all, which are the periods are available that periods should get in previous year alsoVAR selectedyear=SELECTEDVALUE(Sunchips_MP[YEAR])VAR MAXPERIOD=MAX(Sunchips_MP[PERIOD])VAR cy =SUMX(FILTER(Sunchips_MP, Sunchips_MP[YEAR] = SelectedYear&&Sunchips_MP[PERIOD]<=MAXPERIOD),Sunchips_MP[TOTAL OCCASIONS])VAR py =SUMX(FILTER(Sunchips_MP,Sunchips_MP[YEAR] = SelectedYear-1&&Sunchips_MP[PERIOD]<=MAXPERIOD),Sunchips_MP[TOTAL OCCASIONS])VAR maxyear_GROWTHRATE=(cy-py)/py
- Ashish_Mathur3 years agoSuper User
Whenever you have the opportunity to, share the download link of the PBI file with a Calendar Table and a Period column in the Calendar Table.
- Arjun_reddy3 years agoHelper I
download the pbix file, use the page1 view and use the growthrate_occ measure, If py variable working fine, issue will resolve
- Ashish_Mathur3 years agoSuper User
Takes me to a sign-in page. Ensure that in the file there is a Calendar Table with the Period column.