SlideShare a Scribd company logo
Power-Ups
Filtering a slicer
Problem
● If slicing a report using a dimension table, the slicer will
contain all items in the dimension table even though there
may not be any data in the fact table
● This is problematic for the user since they may select
dates for which there is no data, or have trouble finding
the date they want to use as a report filter
2
Solution
● This is not a definitive solution, this just works for me as a work
around. I am yet to find a DAX solution that works in all cases
● The example I am using is for a date table as the dimension.
● Overview::
○ A calculated column in the date table that reference the
fact tables date
○ Add the measure as a calculated column to the Page or
Report level filters
○ Remove any blank items from the filter
3
4
Date Table
The date table starts on 1 Jan 2012.
Fact Table
The fact table starts in 2015
5
Slicer not filtered
The slicer (YearNumber) contains all the years in the date table from 2002
– 2019.
For the energy supply (Fact Table) there is only data from 2005 – 2016.
User Experience
Although this issue seems small it can impact the
user experience, for example:
● Not all the dates are shown in the drop down list
of the slicer.
● The user can see 2002 as a selection but 2016 is
not on the list.
● 2002 has no data and should be shown for
selection
● 2016 does have data but is not on the list
6
7
Add Calculated Column Date
Table
● Add a calculated column in the date table that refers to the datekey in the fact
table
● In the example above I used MAX() of the dates field in the fact table
● I named the column YearFact
8
Add to Page /
Report Filter
● Add the calculated column (YearFact) to
the Report Level Filters section
● You will notice that there are some field
that are blank, these are dates that
appear in the date table but not in the
fact table
9
Remove (Blank)
● Remove the (blank) fields by
deselecting the field
● This removes all the years in the slicer
for which there is no corresponding
year in the fact table
10
Ta-dah!
The year’s displayed in the
slicer now matched the years
for which the is data in the
fact table
Thanks!
I am Johann Krugell
A practical guide to “Power-Up” your analysis
You can find me at @JohannKrugell@linkedin
11
Credits
Special thanks to all the people who made and
released these awesome resources for free:
● Presentation template by SlidesCarnival
● Photographs by Unsplash
12

More Related Content

What's hot

Uop qrb 501 week 6 signature assignment new
Uop qrb 501 week 6 signature assignment newUop qrb 501 week 6 signature assignment new
Uop qrb 501 week 6 signature assignment new
Efharisemica
 
Uop qrb-501-week-6-signature-assignment-new
Uop qrb-501-week-6-signature-assignment-newUop qrb-501-week-6-signature-assignment-new
Uop qrb-501-week-6-signature-assignment-new
assignmentindi
 
VIEWS
VIEWSVIEWS
Lesson 19 Part 1
Lesson 19 Part 1Lesson 19 Part 1
Lesson 19 Part 1
wyork
 
7
77
Case Problem: Loan.xisx
Case Problem: Loan.xisxCase Problem: Loan.xisx
Case Problem: Loan.xisx
ViscKand
 
GeoGebra data analysis
GeoGebra data analysisGeoGebra data analysis
GeoGebra data analysis
Colleen Young
 
Microsoft excel
Microsoft excelMicrosoft excel
Microsoft excel
kandycestucker
 
exploring_ecap_grader_c2_Transactions_LastFirst. solution
exploring_ecap_grader_c2_Transactions_LastFirst. solutionexploring_ecap_grader_c2_Transactions_LastFirst. solution
exploring_ecap_grader_c2_Transactions_LastFirst. solution
JackCandtona
 
The new features of excel 2016
The new features of excel 2016The new features of excel 2016
The new features of excel 2016
Hajir H
 
Introduction
IntroductionIntroduction
Introduction
Lavita Menezes
 
Microsoft excel
Microsoft excelMicrosoft excel
Microsoft excel
kandycestucker
 
This short project (also in week 7) allows students to calculate mor
This short project (also in week 7) allows students to calculate morThis short project (also in week 7) allows students to calculate mor
This short project (also in week 7) allows students to calculate mor
ariysn
 
Office 365 Tip: Analyze Data Effectively
Office 365 Tip: Analyze Data EffectivelyOffice 365 Tip: Analyze Data Effectively
Office 365 Tip: Analyze Data Effectively
Microsoft India
 
Report Converter
Report ConverterReport Converter
Report Converter
Michael Seaman
 
Smart Sheet Range for Excel - Collabion Charts For SharePoint
Smart Sheet Range for Excel - Collabion Charts For SharePointSmart Sheet Range for Excel - Collabion Charts For SharePoint
Smart Sheet Range for Excel - Collabion Charts For SharePoint
Collabion Technologies
 

What's hot (16)

Uop qrb 501 week 6 signature assignment new
Uop qrb 501 week 6 signature assignment newUop qrb 501 week 6 signature assignment new
Uop qrb 501 week 6 signature assignment new
 
Uop qrb-501-week-6-signature-assignment-new
Uop qrb-501-week-6-signature-assignment-newUop qrb-501-week-6-signature-assignment-new
Uop qrb-501-week-6-signature-assignment-new
 
VIEWS
VIEWSVIEWS
VIEWS
 
Lesson 19 Part 1
Lesson 19 Part 1Lesson 19 Part 1
Lesson 19 Part 1
 
7
77
7
 
Case Problem: Loan.xisx
Case Problem: Loan.xisxCase Problem: Loan.xisx
Case Problem: Loan.xisx
 
GeoGebra data analysis
GeoGebra data analysisGeoGebra data analysis
GeoGebra data analysis
 
Microsoft excel
Microsoft excelMicrosoft excel
Microsoft excel
 
exploring_ecap_grader_c2_Transactions_LastFirst. solution
exploring_ecap_grader_c2_Transactions_LastFirst. solutionexploring_ecap_grader_c2_Transactions_LastFirst. solution
exploring_ecap_grader_c2_Transactions_LastFirst. solution
 
The new features of excel 2016
The new features of excel 2016The new features of excel 2016
The new features of excel 2016
 
Introduction
IntroductionIntroduction
Introduction
 
Microsoft excel
Microsoft excelMicrosoft excel
Microsoft excel
 
This short project (also in week 7) allows students to calculate mor
This short project (also in week 7) allows students to calculate morThis short project (also in week 7) allows students to calculate mor
This short project (also in week 7) allows students to calculate mor
 
Office 365 Tip: Analyze Data Effectively
Office 365 Tip: Analyze Data EffectivelyOffice 365 Tip: Analyze Data Effectively
Office 365 Tip: Analyze Data Effectively
 
Report Converter
Report ConverterReport Converter
Report Converter
 
Smart Sheet Range for Excel - Collabion Charts For SharePoint
Smart Sheet Range for Excel - Collabion Charts For SharePointSmart Sheet Range for Excel - Collabion Charts For SharePoint
Smart Sheet Range for Excel - Collabion Charts For SharePoint
 

Similar to Power ups filter a slicer

Business Analytics 1 Module 4.pdf
Business Analytics 1 Module 4.pdfBusiness Analytics 1 Module 4.pdf
Business Analytics 1 Module 4.pdf
Jayanti Pande
 
How to use Pivot Table in Analyzing Sales
How to use Pivot Table in Analyzing SalesHow to use Pivot Table in Analyzing Sales
How to use Pivot Table in Analyzing Sales
reyeshazel
 
Developing a ssrs report using a ssas data source
Developing a ssrs report using a ssas data sourceDeveloping a ssrs report using a ssas data source
Developing a ssrs report using a ssas data source
relekarsushant
 
Excelling with Excel: Advanced Excel Functions for Collection Analysis
Excelling with Excel: Advanced Excel Functions for Collection AnalysisExcelling with Excel: Advanced Excel Functions for Collection Analysis
Excelling with Excel: Advanced Excel Functions for Collection Analysis
Charleston Conference
 
Power Ups Ledger FX Rate
Power Ups Ledger FX RatePower Ups Ledger FX Rate
Power Ups Ledger FX Rate
Johann Krugell
 
Supercharge Strategy Execution: Performance Scorecard
Supercharge Strategy Execution: Performance ScorecardSupercharge Strategy Execution: Performance Scorecard
Supercharge Strategy Execution: Performance Scorecard
Flevy.com Best Practices
 
Microsoft Excel Basics
Microsoft Excel BasicsMicrosoft Excel Basics
Microsoft Excel Basics
Compudon
 
MS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & ChartsMS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & Charts
dnbakhan
 
Basic Pivot Features In Collabion Charts For SharePoint
Basic Pivot Features In Collabion Charts For SharePointBasic Pivot Features In Collabion Charts For SharePoint
Basic Pivot Features In Collabion Charts For SharePoint
Collabion Technologies
 
Funções DAX.pdf
Funções DAX.pdfFunções DAX.pdf
Funções DAX.pdf
Joao Vaz
 
02_GBS multinational Benchmarking Retail
02_GBS multinational Benchmarking Retail02_GBS multinational Benchmarking Retail
02_GBS multinational Benchmarking Retail
Philippe FIXEL
 
Regression Data for Final Project G3 Stat 615.MPJUsin.docx
Regression Data  for Final Project G3 Stat 615.MPJUsin.docxRegression Data  for Final Project G3 Stat 615.MPJUsin.docx
Regression Data for Final Project G3 Stat 615.MPJUsin.docx
sodhi3
 
Instructions sc ex16_8a
Instructions sc ex16_8aInstructions sc ex16_8a
Instructions sc ex16_8a
LegendsRIP
 
ACTG Tableau intro labDownload the TableauLab file and look ov.docx
ACTG   Tableau intro labDownload the TableauLab file and look ov.docxACTG   Tableau intro labDownload the TableauLab file and look ov.docx
ACTG Tableau intro labDownload the TableauLab file and look ov.docx
nettletondevon
 
Reports and dashboards @salesforce
Reports and dashboards @salesforceReports and dashboards @salesforce
Reports and dashboards @salesforce
Kapil Kumar Patle
 
1 Mashing Up Data with PowerPivot When Filter, .docx
1 Mashing Up Data with PowerPivot  When Filter, .docx1 Mashing Up Data with PowerPivot  When Filter, .docx
1 Mashing Up Data with PowerPivot When Filter, .docx
karisariddell
 
Chapter 7 -DescriptiveStatistics and Pivot Table
Chapter 7 -DescriptiveStatistics and Pivot TableChapter 7 -DescriptiveStatistics and Pivot Table
Chapter 7 -DescriptiveStatistics and Pivot Table
Izwan Nizal Mohd Shaharanee
 
1a s4 i creating runcharts final
1a s4 i creating runcharts final1a s4 i creating runcharts final
1a s4 i creating runcharts final
ABCiABUHB
 
Introduction to Business analytics unit3
Introduction to Business analytics unit3Introduction to Business analytics unit3
Introduction to Business analytics unit3
jayarellirs
 
Calculation contex in sap business objects
Calculation contex in sap business objectsCalculation contex in sap business objects
Calculation contex in sap business objects
Dmitry Anoshin
 

Similar to Power ups filter a slicer (20)

Business Analytics 1 Module 4.pdf
Business Analytics 1 Module 4.pdfBusiness Analytics 1 Module 4.pdf
Business Analytics 1 Module 4.pdf
 
How to use Pivot Table in Analyzing Sales
How to use Pivot Table in Analyzing SalesHow to use Pivot Table in Analyzing Sales
How to use Pivot Table in Analyzing Sales
 
Developing a ssrs report using a ssas data source
Developing a ssrs report using a ssas data sourceDeveloping a ssrs report using a ssas data source
Developing a ssrs report using a ssas data source
 
Excelling with Excel: Advanced Excel Functions for Collection Analysis
Excelling with Excel: Advanced Excel Functions for Collection AnalysisExcelling with Excel: Advanced Excel Functions for Collection Analysis
Excelling with Excel: Advanced Excel Functions for Collection Analysis
 
Power Ups Ledger FX Rate
Power Ups Ledger FX RatePower Ups Ledger FX Rate
Power Ups Ledger FX Rate
 
Supercharge Strategy Execution: Performance Scorecard
Supercharge Strategy Execution: Performance ScorecardSupercharge Strategy Execution: Performance Scorecard
Supercharge Strategy Execution: Performance Scorecard
 
Microsoft Excel Basics
Microsoft Excel BasicsMicrosoft Excel Basics
Microsoft Excel Basics
 
MS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & ChartsMS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & Charts
 
Basic Pivot Features In Collabion Charts For SharePoint
Basic Pivot Features In Collabion Charts For SharePointBasic Pivot Features In Collabion Charts For SharePoint
Basic Pivot Features In Collabion Charts For SharePoint
 
Funções DAX.pdf
Funções DAX.pdfFunções DAX.pdf
Funções DAX.pdf
 
02_GBS multinational Benchmarking Retail
02_GBS multinational Benchmarking Retail02_GBS multinational Benchmarking Retail
02_GBS multinational Benchmarking Retail
 
Regression Data for Final Project G3 Stat 615.MPJUsin.docx
Regression Data  for Final Project G3 Stat 615.MPJUsin.docxRegression Data  for Final Project G3 Stat 615.MPJUsin.docx
Regression Data for Final Project G3 Stat 615.MPJUsin.docx
 
Instructions sc ex16_8a
Instructions sc ex16_8aInstructions sc ex16_8a
Instructions sc ex16_8a
 
ACTG Tableau intro labDownload the TableauLab file and look ov.docx
ACTG   Tableau intro labDownload the TableauLab file and look ov.docxACTG   Tableau intro labDownload the TableauLab file and look ov.docx
ACTG Tableau intro labDownload the TableauLab file and look ov.docx
 
Reports and dashboards @salesforce
Reports and dashboards @salesforceReports and dashboards @salesforce
Reports and dashboards @salesforce
 
1 Mashing Up Data with PowerPivot When Filter, .docx
1 Mashing Up Data with PowerPivot  When Filter, .docx1 Mashing Up Data with PowerPivot  When Filter, .docx
1 Mashing Up Data with PowerPivot When Filter, .docx
 
Chapter 7 -DescriptiveStatistics and Pivot Table
Chapter 7 -DescriptiveStatistics and Pivot TableChapter 7 -DescriptiveStatistics and Pivot Table
Chapter 7 -DescriptiveStatistics and Pivot Table
 
1a s4 i creating runcharts final
1a s4 i creating runcharts final1a s4 i creating runcharts final
1a s4 i creating runcharts final
 
Introduction to Business analytics unit3
Introduction to Business analytics unit3Introduction to Business analytics unit3
Introduction to Business analytics unit3
 
Calculation contex in sap business objects
Calculation contex in sap business objectsCalculation contex in sap business objects
Calculation contex in sap business objects
 

Recently uploaded

STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
sameer shah
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
vikram sood
 
A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
AlessioFois2
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Kiwi Creative
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
ihavuls
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
Social Samosa
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Aggregage
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
Sm321
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
soxrziqu
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
jitskeb
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
AndrzejJarynowski
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
SaffaIbrahim1
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
Lars Albertsson
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
Timothy Spann
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
apvysm8
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
aqzctr7x
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
Bill641377
 

Recently uploaded (20)

STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
 
A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
 

Power ups filter a slicer

  • 2. Problem ● If slicing a report using a dimension table, the slicer will contain all items in the dimension table even though there may not be any data in the fact table ● This is problematic for the user since they may select dates for which there is no data, or have trouble finding the date they want to use as a report filter 2
  • 3. Solution ● This is not a definitive solution, this just works for me as a work around. I am yet to find a DAX solution that works in all cases ● The example I am using is for a date table as the dimension. ● Overview:: ○ A calculated column in the date table that reference the fact tables date ○ Add the measure as a calculated column to the Page or Report level filters ○ Remove any blank items from the filter 3
  • 4. 4 Date Table The date table starts on 1 Jan 2012. Fact Table The fact table starts in 2015
  • 5. 5 Slicer not filtered The slicer (YearNumber) contains all the years in the date table from 2002 – 2019. For the energy supply (Fact Table) there is only data from 2005 – 2016.
  • 6. User Experience Although this issue seems small it can impact the user experience, for example: ● Not all the dates are shown in the drop down list of the slicer. ● The user can see 2002 as a selection but 2016 is not on the list. ● 2002 has no data and should be shown for selection ● 2016 does have data but is not on the list 6
  • 7. 7 Add Calculated Column Date Table ● Add a calculated column in the date table that refers to the datekey in the fact table ● In the example above I used MAX() of the dates field in the fact table ● I named the column YearFact
  • 8. 8 Add to Page / Report Filter ● Add the calculated column (YearFact) to the Report Level Filters section ● You will notice that there are some field that are blank, these are dates that appear in the date table but not in the fact table
  • 9. 9 Remove (Blank) ● Remove the (blank) fields by deselecting the field ● This removes all the years in the slicer for which there is no corresponding year in the fact table
  • 10. 10 Ta-dah! The year’s displayed in the slicer now matched the years for which the is data in the fact table
  • 11. Thanks! I am Johann Krugell A practical guide to “Power-Up” your analysis You can find me at @JohannKrugell@linkedin 11
  • 12. Credits Special thanks to all the people who made and released these awesome resources for free: ● Presentation template by SlidesCarnival ● Photographs by Unsplash 12